Changeset 2f636b6 in mainline
- Timestamp:
- 2009-09-03T15:04:59Z (15 years ago)
- Branches:
- lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
- Children:
- d044447, f6b5593
- Parents:
- cca29e3c
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
uspace/srv/fs/fat/fat_fat.c
rcca29e3c r2f636b6 379 379 for (b = 0, cl = 0; b < sf; b++) { 380 380 rc = block_get(&blk, dev_handle, rscnt + b, BLOCK_FLAGS_NONE); 381 if (rc != EOK) 382 goto error; 381 383 for (c = 0; c < bps / sizeof(fat_cluster_t); c++, cl++) { 382 384 fat_cluster_t *clst = (fat_cluster_t *)blk->data + c; … … 394 396 /* we are almost done */ 395 397 rc = block_put(blk); 396 assert(rc == EOK); 398 if (rc != EOK) 399 goto error; 397 400 /* update the shadow copies of FAT */ 398 401 rc = fat_alloc_shadow_clusters(bs, 399 402 dev_handle, lifo, nclsts); 400 assert(rc == EOK); 403 if (rc != EOK) 404 goto error; 401 405 *mcl = lifo[found - 1]; 402 406 *lcl = lifo[0]; … … 408 412 } 409 413 rc = block_put(blk); 410 assert(rc == EOK); 414 if (rc != EOK) { 415 error: 416 fibril_mutex_unlock(&fat_alloc_lock); 417 free(lifo); 418 return rc; 419 } 411 420 } 412 421 fibril_mutex_unlock(&fat_alloc_lock);
Note:
See TracChangeset
for help on using the changeset viewer.