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

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


Ignore:
Timestamp:
2009-10-01T11:32:04Z (11 years ago)
Author:
Jakub Jermar <jakub@…>
Branches:
master
Children:
8810c63
Parents:
0fc1e5d
Message:

Make fat_idx_get_new() return the exact error code.

File:
1 edited

Legend:

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

    r0fc1e5d r9a15176  
    462462                return rc;
    463463        }
    464         idxp = fat_idx_get_new(dev_handle);
    465         if (!idxp) {
     464        rc = fat_idx_get_new(&idxp, dev_handle);
     465        if (rc != EOK) {
    466466                (void) fat_free_clusters(bs, dev_handle, mcl); 
    467467                (void) fat_node_put(FS_NODE(nodep));
    468                 return ENOMEM;  /* FIXME: determine the true error code */
     468                return rc;
    469469        }
    470470        /* idxp->lock held */
Note: See TracChangeset for help on using the changeset viewer.