Changeset 8b863a62 in mainline for uspace/lib/ext4/libext4_directory_index.c
- Timestamp:
- 2014-04-16T17:14:06Z (11 years ago)
- Branches:
- lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
- Children:
- f857e8b
- Parents:
- dba3e2c (diff), 70b570c (diff)
Note: this is a merge changeset, the changes displayed below correspond to the merge itself.
Use the(diff)
links above to see all the changes relative to each parent. - File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
uspace/lib/ext4/libext4_directory_index.c
rdba3e2c r8b863a62 527 527 528 528 /* Don't forget to put old block (prevent memory leak) */ 529 block_put(p->block); 529 rc = block_put(p->block); 530 if (rc != EOK) 531 return rc; 530 532 531 533 p->block = block; … … 553 555 /* Load direct block 0 (index root) */ 554 556 uint32_t root_block_addr; 557 int rc2; 555 558 int rc = ext4_filesystem_get_inode_data_block_index(inode_ref, 0, 556 559 &root_block_addr); … … 620 623 621 624 /* Not found, leave untouched */ 622 block_put(leaf_block); 625 rc2 = block_put(leaf_block); 626 if (rc2 != EOK) 627 goto cleanup; 623 628 624 629 if (rc != ENOENT) … … 628 633 rc = ext4_directory_dx_next_block(inode_ref, hinfo.hash, 629 634 dx_block, &dx_blocks[0]); 630 if (rc < 0)635 if (rc != EOK) 631 636 goto cleanup; 637 632 638 } while (rc == ENOENT); 633 639 … … 640 646 641 647 while (tmp <= dx_block) { 642 block_put(tmp->block); 648 rc2 = block_put(tmp->block); 649 if (rc == EOK && rc2 != EOK) 650 rc = rc2; 643 651 ++tmp; 644 652 }
Note:
See TracChangeset
for help on using the changeset viewer.