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:
53692ec
)
ext4: fix buffer leak in __ext4_read_dirblock() on error path
author
Vasily Averin
<vvs@virtuozzo.com>
Thu, 8 Nov 2018 03:36:23 +0000
(22:36 -0500)
committer
Theodore Ts'o
<tytso@mit.edu>
Thu, 8 Nov 2018 03:36:23 +0000
(22:36 -0500)
Fixes: dc6982ff4db1 ("ext4: refactor code to read directory blocks ...")
Signed-off-by: Vasily Averin <vvs@virtuozzo.com>
Signed-off-by: Theodore Ts'o <tytso@mit.edu>
Cc: stable@kernel.org # 3.9
fs/ext4/namei.c
patch
|
blob
|
history
diff --git
a/fs/ext4/namei.c
b/fs/ext4/namei.c
index d388cce72db201c48c22f4247a0f902e9b79ae1c..6a6b90363ef1b2344c053d0a751a4c8a5989cde2 100644
(file)
--- a/
fs/ext4/namei.c
+++ b/
fs/ext4/namei.c
@@
-126,6
+126,7
@@
static struct buffer_head *__ext4_read_dirblock(struct inode *inode,
if (!is_dx_block && type == INDEX) {
ext4_error_inode(inode, func, line, block,
"directory leaf block found instead of index block");
+ brelse(bh);
return ERR_PTR(-EFSCORRUPTED);
}
if (!ext4_has_metadata_csum(inode->i_sb) ||