Changeset 9165a5b in rtems


Ignore:
Timestamp:
Jun 18, 2013, 12:14:43 PM (6 years ago)
Author:
Sebastian Huber <sebastian.huber@…>
Branches:
4.11, master
Children:
4f1da72
Parents:
f97f46ce
git-author:
Sebastian Huber <sebastian.huber@…> (06/18/13 12:14:43)
git-committer:
Sebastian Huber <sebastian.huber@…> (06/21/13 08:26:11)
Message:

IMFS: Fix reference count for debug enabled

File:
1 edited

Legend:

Unmodified
Added
Removed
  • cpukit/libfs/src/imfs/imfs_initsupp.c

    rf97f46ce r9165a5b  
    131131  IMFS_jnode_t *node = loc->node_access;
    132132
    133   if ( node->reference_count == 1 ) {
     133  --node->reference_count;
     134
     135  if ( node->reference_count == 0 ) {
    134136    IMFS_node_destroy( node );
    135   } else {
    136     --node->reference_count;
    137137  }
    138138}
Note: See TracChangeset for help on using the changeset viewer.