mirror of
https://github.com/hardkernel/linux.git
synced 2026-06-04 18:19:28 +09:00
ext4: fix buffer leak in ext4_xattr_move_to_block() on error path
commit6bdc9977fcupstream. 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 Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
This commit is contained in:
committed by
Greg Kroah-Hartman
parent
8113972d21
commit
4096fc0912
@@ -2626,6 +2626,8 @@ out:
|
||||
kfree(buffer);
|
||||
if (is)
|
||||
brelse(is->iloc.bh);
|
||||
if (bs)
|
||||
brelse(bs->bh);
|
||||
kfree(is);
|
||||
kfree(bs);
|
||||
|
||||
|
||||
Reference in New Issue
Block a user