Changeset 624 for soft


Ignore:
Timestamp:
Jul 17, 2015, 4:34:54 PM (9 years ago)
Author:
guerin
Message:

fat32: _fat_close: check inode parent ptr before using it

Opening and closing the root directory was causing a crash.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • soft/giet_vm/giet_fat32/fat32.c

    r623 r624  
    30083008
    30093009        // update directory dirty clusters for parent directory
    3010         if ( _update_device_from_cache( inode->parent->levels,
     3010        if ( inode->parent &&
     3011             _update_device_from_cache( inode->parent->levels,
    30113012                                        inode->parent->cache,
    3012                                         inode->parent->name ) ) 
     3013                                        inode->parent->name ) )
    30133014        {
    30143015            _spin_lock_release( &_fat.fat_lock );
Note: See TracChangeset for help on using the changeset viewer.