Changeset f38caff in rtems


Ignore:
Timestamp:
Mar 9, 2012, 1:13:22 PM (8 years ago)
Author:
Sebastian Huber <sebastian.huber@…>
Branches:
4.10
Children:
55e47833
Parents:
cb648b75
git-author:
Sebastian Huber <sebastian.huber@…> (03/09/12 13:13:22)
git-committer:
Sebastian Huber <sebastian.huber@…> (03/14/12 08:04:40)
Message:

PR2039: Fix NULL pointer access

In case rtems_bdbuf_read() returns an error status, the block device
buffer pointer will be set to NULL. In RFS the chain node of the block
device buffer will be used for RFS purposes. We must not do this after
an erroneous read.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • cpukit/libfs/src/rfs/rtems-rfs-buffer.c

    rcb648b75 rf38caff  
    167167    rc = rtems_rfs_buffer_io_request (fs, block, read, &handle->buffer);
    168168
    169     rtems_chain_set_off_chain (rtems_rfs_buffer_link(handle));
    170 
    171169    if (rc > 0)
    172170    {
     
    176174      return rc;
    177175    }
     176
     177    rtems_chain_set_off_chain (rtems_rfs_buffer_link(handle));
    178178  }
    179179
Note: See TracChangeset for help on using the changeset viewer.