mirror of
https://github.com/torvalds/linux.git
synced 2026-06-07 22:14:04 +02: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:
parent
0d9902d43f
commit
27acd8f869
|
|
@ -1490,6 +1490,8 @@ int ext4_expand_extra_isize_ea(struct inode *inode, int new_extra_isize,
|
|||
kfree(buffer);
|
||||
if (is)
|
||||
brelse(is->iloc.bh);
|
||||
if (bs)
|
||||
brelse(bs->bh);
|
||||
kfree(is);
|
||||
kfree(bs);
|
||||
brelse(bh);
|
||||
|
|
|
|||
Loading…
Reference in New Issue
Block a user