Commit 8113972d authored by Vasily Averin's avatar Vasily Averin Committed by Greg Kroah-Hartman
Browse files

ext4: release before re-using in ext4_xattr_block_find()

commit 45ae932d upstream. was taken in previous ext4_xattr_block_find() call,
it should be released before re-using

Fixes: 7e01c8e5

 ("ext3/4: fix uninitialized bs in ...")
Signed-off-by: default avatarVasily Averin <>
Signed-off-by: default avatarTheodore Ts'o <>
Cc: # 2.6.26
Signed-off-by: default avatarGreg Kroah-Hartman <>
parent 70ca35b4
......@@ -2404,6 +2404,8 @@ ext4_xattr_set_handle(handle_t *handle, struct inode *inode, int name_index,
error = ext4_xattr_block_set(handle, inode, &i, &bs);
} else if (error == -ENOSPC) {
if (EXT4_I(inode)->i_file_acl && !bs.s.base) {
brelse(; = NULL;
error = ext4_xattr_block_find(inode, &i, &bs);
if (error)
goto cleanup;
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