Changeset 2f591127 in mainline for uspace/srv/fs/ext4fs/ext4fs_ops.c


Ignore:
Timestamp:
2014-01-19T14:35:04Z (10 years ago)
Author:
Maurizio Lombardi <m.lombardi85@…>
Branches:
lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
Children:
5828554
Parents:
a159c6a
Message:

ext4: fix some minor bugs and memory leaks

File:
1 edited

Legend:

Unmodified
Added
Removed
  • uspace/srv/fs/ext4fs/ext4fs_ops.c

    ra159c6a r2f591127  
    14031403        }
    14041404       
    1405         if (flags == BLOCK_FLAGS_NOREAD)
     1405        if (flags == BLOCK_FLAGS_NOREAD) {
    14061406                memset(write_block->data, 0, block_size);
     1407                write_block->dirty = true;
     1408        }
    14071409
    14081410        rc = async_data_write_finalize(callid, write_block->data +
    14091411            (pos % block_size), bytes);
    1410         if (rc != EOK)
     1412        if (rc != EOK) {
     1413                block_put(write_block);
    14111414                goto exit;
    1412 
    1413         write_block->dirty = true;
    1414        
     1415        }
     1416
    14151417        rc = block_put(write_block);
    14161418        if (rc != EOK)
Note: See TracChangeset for help on using the changeset viewer.