Commit 6bdc9977 authored by Vasily Averin's avatar Vasily Averin Committed by Theodore Ts'o
Browse files

ext4: fix buffer leak in ext4_xattr_move_to_block() on error path

Fixes: 3f2571c1 ("ext4: factor out xattr moving")
Fixes: 6dd4ee7c

 ("ext4: Expand extra_inodes space per ...")
Reviewed-by: default avatarJan Kara <>
Signed-off-by: default avatarVasily Averin <>
Signed-off-by: default avatarTheodore Ts'o <>
Cc: # 2.6.23
parent 45ae932d
...@@ -2617,6 +2617,8 @@ static int ext4_xattr_move_to_block(handle_t *handle, struct inode *inode, ...@@ -2617,6 +2617,8 @@ static int ext4_xattr_move_to_block(handle_t *handle, struct inode *inode,
kfree(buffer); kfree(buffer);
if (is) if (is)
brelse(is->; brelse(is->;
if (bs)
kfree(is); kfree(is);
kfree(bs); kfree(bs);
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment