summaryrefslogtreecommitdiffstats
path: root/fs/btrfs/super.c
diff options
context:
space:
mode:
authorDan Carpenter2013-07-22 08:55:15 +0200
committerChris Mason2013-09-01 14:04:26 +0200
commit3dc0e818afa25a605091b6a16c2c4e5698c0a9c2 (patch)
tree148c006bde1ff423c9623e33ccd1d45ae16688fd /fs/btrfs/super.c
parentBtrfs: don't bother autodefragging if our root is going away (diff)
downloadkernel-qcow2-linux-3dc0e818afa25a605091b6a16c2c4e5698c0a9c2.tar.gz
kernel-qcow2-linux-3dc0e818afa25a605091b6a16c2c4e5698c0a9c2.tar.xz
kernel-qcow2-linux-3dc0e818afa25a605091b6a16c2c4e5698c0a9c2.zip
btrfs/raid56: fix and cleanup some error paths
The alloc_rbio() frees "raid_map" and "bbio" on error, so there is a potential double free bug in raid56_parity_write(). The raid56_parity_write() and raid56_parity_recover() functions should still free "raid_map" and "bbio" on error if other errors occur though, so I have added some more calls to kfree(). Signed-off-by: Dan Carpenter <dan.carpenter@oracle.com> Reviewed-by: Miao Xie <miaox@cn.fujitsu.com> Signed-off-by: Josef Bacik <jbacik@fusionio.com> Signed-off-by: Chris Mason <chris.mason@fusionio.com>
Diffstat (limited to 'fs/btrfs/super.c')
0 files changed, 0 insertions, 0 deletions