mirror of
https://github.com/BobTheBlinker/android_kernel_motorola_sm6375.git
synced 2026-10-30 03:27:44 -04:00
ext4: release bs.bh before re-using in ext4_xattr_block_find()
bs.bh was taken in previous ext4_xattr_block_find() call,
it should be released before re-using
Fixes: 7e01c8e542 ("ext3/4: fix uninitialized bs in ...")
Signed-off-by: Vasily Averin <[email protected]>
Signed-off-by: Theodore Ts'o <[email protected]>
Cc: [email protected] # 2.6.26
This commit is contained in:
parent
ecaaf40847
commit
45ae932d24
1 changed files with 2 additions and 0 deletions
|
|
@ -2395,6 +2395,8 @@ retry_inode:
|
|||
error = ext4_xattr_block_set(handle, inode, &i, &bs);
|
||||
} else if (error == -ENOSPC) {
|
||||
if (EXT4_I(inode)->i_file_acl && !bs.s.base) {
|
||||
brelse(bs.bh);
|
||||
bs.bh = NULL;
|
||||
error = ext4_xattr_block_find(inode, &i, &bs);
|
||||
if (error)
|
||||
goto cleanup;
|
||||
|
|
|
|||
Loading…
Reference in a new issue