Changeset 04fee31 in rtems for cpukit/libblock


Ignore:
Timestamp:
01/20/10 17:10:36 (14 years ago)
Author:
Joel Sherrill <joel.sherrill@…>
Branches:
4.10, 4.11, 5, 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.
File:
1 edited

Legend:

Unmodified
Added
Removed
  • 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.