Fork us on GitHub Follow us on Facebook Follow us on Twitter

Changeset a159c6a in mainline


Ignore:
Timestamp:
2013-12-04T20:47:25Z (9 years ago)
Author:
Maurizio Lombardi <m.lombardi85@…>
Branches:
lfn, master, serial
Children:
2f591127
Parents:
d4d5b17
Message:

ext4: release the block group in case of error.

File:
1 edited

Legend:

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

    rd4d5b17 ra159c6a  
    169169        block_t *bitmap_block;
    170170        rc = block_get(&bitmap_block, fs->device, bitmap_block_addr, 0);
    171         if (rc != EOK)
    172                 return rc;
     171        if (rc != EOK) {
     172                ext4_filesystem_put_block_group_ref(bg_ref);
     173                return rc;
     174        }
    173175       
    174176        /* Modify bitmap */
Note: See TracChangeset for help on using the changeset viewer.