ext4: fix possible inode leak in the retry loop of ext4_resize_fs()
commitdb6aee6240
upstream. 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 Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
This commit is contained in:
Родитель
dd27753371
Коммит
3caa7b620c
|
@ -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;
|
||||
}
|
||||
|
||||
|
|
Загрузка…
Ссылка в новой задаче