Changeset 9f64c1e in mainline for uspace/srv/fs/fat/fat_ops.c


Ignore:
Timestamp:
2017-07-16T17:55:23Z (7 years ago)
Author:
Jiri Svoboda <jiri@…>
Branches:
lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
Children:
9ef1fade
Parents:
5772aa1
Message:

Fix fat32 EBPB packing. Fix 32-bit FAT BS being detected as MBR. Fix error path.

File:
1 edited

Legend:

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

    r5772aa1 r9f64c1e  
    10531053
    10541054        rc = fat_directory_open(nodep, &di);
    1055         if (rc != EOK)
    1056                 return rc;
     1055        if (rc != EOK) {
     1056                fat_fs_close(service_id, rfn);
     1057                return rc;
     1058        }
    10571059
    10581060        rc = fat_directory_vollabel_get(&di, label);
    10591061        if (rc != EOK) {
    1060                 if (rc != ENOENT)
     1062                if (rc != ENOENT) {
     1063                        fat_fs_close(service_id, rfn);
    10611064                        return rc;
     1065                }
    10621066
    10631067                label[0] = '\0';
Note: See TracChangeset for help on using the changeset viewer.