Changeset 04fee31 in rtems


Ignore:
Timestamp:
Jan 20, 2010, 5:10:36 PM (10 years ago)
Author:
Joel Sherrill <joel.sherrill@…>
Branches:
4.10, 4.11, master
Children:
35dfbd7
Parents:
f659921
Message:

2010-01-20 Joel Sherrill <joel.sherrill@…>

Coverity Id 7
Coverity Id 8

  • libblock/src/bdpart.c: Verify libblock is really set after rtems_bdbuf_read() before using it.
Location:
cpukit
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • cpukit/ChangeLog

    rf659921 r04fee31  
     12010-01-20      Joel Sherrill <joel.sherrill@oarcorp.com>
     2
     3        Coverity Id 7
     4        Coverity Id 8
     5        * libblock/src/bdpart.c: Verify libblock is really set after
     6        rtems_bdbuf_read() before using it.
     7
    182010-01-20      Joel Sherrill <joel.sherrill@oarcorp.com>
    29
  • cpukit/libblock/src/bdpart.c

    rf659921 r04fee31  
    272272  }
    273273
     274  /* just in case block did not get filled in */
     275  if ( *block == NULL ) {
     276    return RTEMS_INVALID_ADDRESS;
     277  }
     278
    274279  /* Check MBR signature */
    275280  if (!rtems_bdpart_is_valid_record( (*block)->buffer)) {
     
    300305  if (sc != RTEMS_SUCCESSFUL) {
    301306    return sc;
     307  }
     308
     309  /* just in case block did not get filled in */
     310  if ( *block == NULL ) {
     311    return RTEMS_INVALID_ADDRESS;
    302312  }
    303313
Note: See TracChangeset for help on using the changeset viewer.