Changes in uspace/lib/ext4/libext4_directory_index.c [e5a1ace3:38542dc] in mainline
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
uspace/lib/ext4/libext4_directory_index.c
re5a1ace3 r38542dc 527 527 528 528 /* Don't forget to put old block (prevent memory leak) */ 529 rc = block_put(p->block); 530 if (rc != EOK) 531 return rc; 529 block_put(p->block); 532 530 533 531 p->block = block; … … 555 553 /* Load direct block 0 (index root) */ 556 554 uint32_t root_block_addr; 557 int rc2;558 555 int rc = ext4_filesystem_get_inode_data_block_index(inode_ref, 0, 559 556 &root_block_addr); … … 623 620 624 621 /* Not found, leave untouched */ 625 rc2 = block_put(leaf_block); 626 if (rc2 != EOK) 627 goto cleanup; 622 block_put(leaf_block); 628 623 629 624 if (rc != ENOENT) … … 633 628 rc = ext4_directory_dx_next_block(inode_ref, hinfo.hash, 634 629 dx_block, &dx_blocks[0]); 635 if (rc != EOK)630 if (rc < 0) 636 631 goto cleanup; 637 638 632 } while (rc == ENOENT); 639 633 … … 646 640 647 641 while (tmp <= dx_block) { 648 rc2 = block_put(tmp->block); 649 if (rc == EOK && rc2 != EOK) 650 rc = rc2; 642 block_put(tmp->block); 651 643 ++tmp; 652 644 }
Note:
See TracChangeset
for help on using the changeset viewer.