Changes in uspace/srv/fs/exfat/exfat_ops.c [80ec9b8:b33870b] in mainline
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
uspace/srv/fs/exfat/exfat_ops.c
r80ec9b8 rb33870b 657 657 return rc; 658 658 } 659 660 rc = exfat_zero_cluster(bs, service_id, nodep->firstc);661 if (rc != EOK) {662 (void) exfat_node_put(FS_NODE(nodep));663 return rc;664 }665 666 659 nodep->size = BPC(bs); 667 660 } else { … … 746 739 */ 747 740 rc = exfat_directory_write_file(&di, name); 748 if (rc != EOK) { 749 (void) exfat_directory_close(&di); 750 fibril_mutex_unlock(&parentp->idx->lock); 751 return rc; 752 } 741 if (rc != EOK) 742 return rc; 753 743 rc = exfat_directory_close(&di); 754 if (rc != EOK) { 755 fibril_mutex_unlock(&parentp->idx->lock); 756 return rc; 757 } 744 if (rc != EOK) 745 return rc; 758 746 759 747 fibril_mutex_unlock(&parentp->idx->lock); … … 1270 1258 exfat_directory_t di; 1271 1259 rc = exfat_directory_open(nodep, &di); 1272 if (rc != EOK) 1273 goto err; 1274 1260 if (rc != EOK) goto err; 1275 1261 rc = exfat_directory_seek(&di, pos); 1276 1262 if (rc != EOK) { … … 1282 1268 &df, &ds); 1283 1269 if (rc == EOK) 1284 goto hit; 1285 else if (rc == ENOENT) 1286 goto miss; 1287 1288 (void) exfat_directory_close(&di); 1270 goto hit; 1271 if (rc == ENOENT) 1272 goto miss; 1289 1273 1290 1274 err: … … 1295 1279 miss: 1296 1280 rc = exfat_directory_close(&di); 1297 if (rc !=EOK)1281 if (rc!=EOK) 1298 1282 goto err; 1299 1283 rc = exfat_node_put(fn); … … 1413 1397 1414 1398 (void) async_data_write_finalize(callid, 1415 1399 b->data + pos % BPS(bs), bytes); 1416 1400 b->dirty = true; /* need to sync block */ 1417 1401 rc = block_put(b);
Note:
See TracChangeset
for help on using the changeset viewer.