projects
/
openwrt
/
staging
/
blogic.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
45ae932
)
ext4: fix buffer leak in ext4_xattr_move_to_block() on error path
author
Vasily Averin
<vvs@virtuozzo.com>
Wed, 7 Nov 2018 16:10:21 +0000
(11:10 -0500)
committer
Theodore Ts'o
<tytso@mit.edu>
Wed, 7 Nov 2018 16:10:21 +0000
(11:10 -0500)
Fixes: 3f2571c1f91f ("ext4: factor out xattr moving")
Fixes: 6dd4ee7cab7e ("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
fs/ext4/xattr.c
patch
|
blob
|
history
diff --git
a/fs/ext4/xattr.c
b/fs/ext4/xattr.c
index 07b9a335c8eb4476ad5f5aae40a825621a17abc4..5c9bc0d85cc0a247f6d2643057e2b363f9fe1fb8 100644
(file)
--- a/
fs/ext4/xattr.c
+++ b/
fs/ext4/xattr.c
@@
-2617,6
+2617,8
@@
out:
kfree(buffer);
if (is)
brelse(is->iloc.bh);
+ if (bs)
+ brelse(bs->bh);
kfree(is);
kfree(bs);