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:
f348e22
)
ext4: fix possible inode leak in the retry loop of ext4_resize_fs()
author
Vasily Averin
<vvs@virtuozzo.com>
Tue, 6 Nov 2018 21:20:40 +0000
(16:20 -0500)
committer
Theodore Ts'o
<tytso@mit.edu>
Tue, 6 Nov 2018 21:20:40 +0000
(16:20 -0500)
Fixes: 1c6bd7173d66 ("ext4: convert file system to meta_bg if needed ...")
Signed-off-by: Vasily Averin <vvs@virtuozzo.com>
Signed-off-by: Theodore Ts'o <tytso@mit.edu>
Cc: stable@kernel.org # 3.7
fs/ext4/resize.c
patch
|
blob
|
history
diff --git
a/fs/ext4/resize.c
b/fs/ext4/resize.c
index 5fee65afd58b8b30b02c1febb7e7ea2547409a1f..85158e9de7c233e0217743e01904ca5a12858097 100644
(file)
--- a/
fs/ext4/resize.c
+++ b/
fs/ext4/resize.c
@@
-2058,6
+2058,10
@@
retry:
n_blocks_count_retry = 0;
free_flex_gd(flex_gd);
flex_gd = NULL;
+ if (resize_inode) {
+ iput(resize_inode);
+ resize_inode = NULL;
+ }
goto retry;
}