Changeset c06dbf9 in mainline


Ignore:
Timestamp:
2008-08-14T19:15:24Z (16 years ago)
Author:
Jakub Jermar <jakub@…>
Branches:
lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
Children:
25becee8
Parents:
79d031b
Message:

When removing a FAT node from the ffn list, use the correct pointer instead of
an uninitialized one.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • uspace/srv/fs/fat/fat_ops.c

    r79d031b rc06dbf9  
    292292        block_t *b;
    293293        fat_dentry_t *d;
    294         fat_node_t *nodep;
     294        fat_node_t *nodep = NULL;
    295295        unsigned bps;
    296296        unsigned dps;
     
    303303                futex_down(&idxp->nodep->lock);
    304304                if (!idxp->nodep->refcnt++)
    305                         list_remove(&nodep->ffn_link);
     305                        list_remove(&idxp->nodep->ffn_link);
    306306                futex_up(&idxp->nodep->lock);
    307307                return idxp->nodep;
Note: See TracChangeset for help on using the changeset viewer.