Fork us on GitHub Follow us on Facebook Follow us on Twitter

Changeset 563686b in mainline


Ignore:
Timestamp:
2011-06-20T19:00:06Z (11 years ago)
Author:
Oleg Romanenko <romanenko.oleg@…>
Branches:
lfn, master
Children:
4372b49
Parents:
b85c19a
Message:

Fix for fat_read. Add error checking for fat_directory_open and use
new function: fat_directory_seek instead explicit assigning position.

File:
1 edited

Legend:

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

    rb85c19a r563686b  
    12051205
    12061206                fat_directory_t di;
    1207                 fat_directory_open(nodep, &di);
    1208                 di.pos = pos;
     1207                rc = fat_directory_open(nodep, &di);
     1208                if (rc != EOK) goto err;
     1209                rc = fat_directory_seek(&di, pos);
     1210                if (rc != EOK) {
     1211                        (void) fat_directory_close(&di);
     1212                        goto err;
     1213                }
    12091214
    12101215                rc = fat_directory_read(&di, name, &d);
Note: See TracChangeset for help on using the changeset viewer.