diff options
author | Vasily Averin <vvs@virtuozzo.com> | 2018-11-06 16:20:40 -0500 |
---|---|---|
committer | Theodore Ts'o <tytso@mit.edu> | 2018-11-06 16:20:40 -0500 |
commit | db6aee62406d9fbb53315fcddd81f1dc271d49fa (patch) | |
tree | f6548f067a3184276e463a0b32c2b208ee001771 | |
parent | f348e2241fb73515d65b5d77dd9c174128a7fbf2 (diff) |
ext4: fix possible inode leak in the retry loop of ext4_resize_fs()
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
-rw-r--r-- | fs/ext4/resize.c | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/fs/ext4/resize.c b/fs/ext4/resize.c index 5fee65afd58b..85158e9de7c2 100644 --- a/fs/ext4/resize.c +++ b/fs/ext4/resize.c | |||
@@ -2058,6 +2058,10 @@ retry: | |||
2058 | n_blocks_count_retry = 0; | 2058 | n_blocks_count_retry = 0; |
2059 | free_flex_gd(flex_gd); | 2059 | free_flex_gd(flex_gd); |
2060 | flex_gd = NULL; | 2060 | flex_gd = NULL; |
2061 | if (resize_inode) { | ||
2062 | iput(resize_inode); | ||
2063 | resize_inode = NULL; | ||
2064 | } | ||
2061 | goto retry; | 2065 | goto retry; |
2062 | } | 2066 | } |
2063 | 2067 | ||