Changeset 532f53d in mainline for uspace/lib/ext4/libext4_filesystem.c


Ignore:
Timestamp:
2013-11-20T21:47:41Z (11 years ago)
Author:
Maurizio Lombardi <m.lombardi85@…>
Branches:
lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
Children:
e5a1ace3
Parents:
2764497
Message:

ext4: return the error code to the caller in case something fails.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • uspace/lib/ext4/libext4_filesystem.c

    r2764497 r532f53d  
    797797                }
    798798               
    799                 block_put(block);
     799                rc = block_put(block);
     800                if (rc != EOK)
     801                        return rc;
     802
    800803                rc = ext4_balloc_free_block(inode_ref, fblock);
    801804                if (rc != EOK)
     
    841844                                }
    842845                               
    843                                 block_put(subblock);
     846                                rc = block_put(subblock);
     847                                if (rc != EOK)
     848                                        return rc;
    844849                        }
    845850                       
     
    851856                }
    852857               
    853                 block_put(block);
     858                rc = block_put(block);
     859                if (rc != EOK)
     860                        return rc;
     861
    854862                rc = ext4_balloc_free_block(inode_ref, fblock);
    855863                if (rc != EOK)
Note: See TracChangeset for help on using the changeset viewer.