mirror of
https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git
synced 2024-08-23 01:10:04 +00:00
ext4: fix possible inode leak in the retry loop of ext4_resize_fs()
Fixes: 1c6bd7173d
("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
This commit is contained in:
parent
f348e2241f
commit
db6aee6240
1 changed files with 4 additions and 0 deletions
|
@ -2058,6 +2058,10 @@ int ext4_resize_fs(struct super_block *sb, ext4_fsblk_t n_blocks_count)
|
|||
n_blocks_count_retry = 0;
|
||||
free_flex_gd(flex_gd);
|
||||
flex_gd = NULL;
|
||||
if (resize_inode) {
|
||||
iput(resize_inode);
|
||||
resize_inode = NULL;
|
||||
}
|
||||
goto retry;
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue