projects
/
GitHub
/
LineageOS
/
android_kernel_motorola_exynos9610.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
dd27753
)
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
Greg Kroah-Hartman
<gregkh@linuxfoundation.org>
Wed, 21 Nov 2018 08:24:12 +0000
(09:24 +0100)
commit
db6aee62406d9fbb53315fcddd81f1dc271d49fa
upstream.
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
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
fs/ext4/resize.c
patch
|
blob
|
blame
|
history
diff --git
a/fs/ext4/resize.c
b/fs/ext4/resize.c
index 46565a6f8137fe4439ec1887c93300b1f4bbea61..075738830b879be81c8136729d5136a2d9295c8d 100644
(file)
--- a/
fs/ext4/resize.c
+++ b/
fs/ext4/resize.c
@@
-2028,6
+2028,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;
}