ext4: fix buffer leak in ext4_xattr_move_to_block() on error path
Fixes:3f2571c1f9
("ext4: factor out xattr moving") Fixes:6dd4ee7cab
("ext4: Expand extra_inodes space per ...") Reviewed-by: Jan Kara <jack@suse.cz> Signed-off-by: Vasily Averin <vvs@virtuozzo.com> Signed-off-by: Theodore Ts'o <tytso@mit.edu> Cc: stable@kernel.org # 2.6.23
This commit is contained in:
committed by
Theodore Ts'o
parent
45ae932d24
commit
6bdc9977fc
@ -2617,6 +2617,8 @@ out:
|
|||||||
kfree(buffer);
|
kfree(buffer);
|
||||||
if (is)
|
if (is)
|
||||||
brelse(is->iloc.bh);
|
brelse(is->iloc.bh);
|
||||||
|
if (bs)
|
||||||
|
brelse(bs->bh);
|
||||||
kfree(is);
|
kfree(is);
|
||||||
kfree(bs);
|
kfree(bs);
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user