From: Dan Carpenter Date: Mon, 22 Jul 2013 06:55:15 +0000 (+0300) Subject: btrfs/raid56: fix and cleanup some error paths X-Git-Tag: v3.12-rc1~40^2~99 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=3dc0e818afa25a605091b6a16c2c4e5698c0a9c2;p=pandora-kernel.git 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 Reviewed-by: Miao Xie Signed-off-by: Josef Bacik Signed-off-by: Chris Mason --- Reading git-diff-tree failed