Changeset 33645763 in rtems


Ignore:
Timestamp:
Jul 23, 2010, 12:11:32 AM (10 years ago)
Author:
Joel Sherrill <joel.sherrill@…>
Branches:
4.11, master
Children:
bdf87932
Parents:
b28cb82
Message:

2010-07-22 Joel Sherrill <joel.sherrill@…>

PR 1627/testing

  • libfs/src/devfs/devstat.c:
Location:
cpukit
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • cpukit/ChangeLog

    rb28cb82 r33645763  
     12010-07-22      Joel Sherrill <joel.sherrill@oarcorp.com>
     2
     3        PR 1627/testing
     4        * libfs/src/devfs/devstat.c:
     5
    162010-07-16      Sebastian Huber <sebastian.huber@embedded-brains.de>
    27
  • cpukit/libfs/src/devfs/devstat.c

    rb28cb82 r33645763  
    2828
    2929  the_dev = (rtems_device_name_t *)loc->node_access;
    30   if (!the_dev)
    31     rtems_set_errno_and_return_minus_one( EFAULT );
     30
     31  /*
     32   *  stat() invokes devFS_evaluate_path() which checks that node_access
     33   *  is not NULL.  So this should NEVER be NULL unless someone breaks
     34   *  other code in this filesystem.
     35   */
     36  #if defined(RTEMS_DEBUG)
     37    if (!the_dev)
     38      rtems_set_errno_and_return_minus_one( EFAULT );
     39  #endif
    3240
    3341  buf->st_rdev  = rtems_filesystem_make_dev_t( the_dev->major, the_dev->minor );
    34 
    3542  buf->st_mode = the_dev->mode;
    36 
    3743  return 0;
    3844}
Note: See TracChangeset for help on using the changeset viewer.