diff options
author | Vasily Averin <vvs@virtuozzo.com> | 2018-11-07 00:16:01 +0300 |
---|---|---|
committer | Ben Hutchings <ben@decadent.org.uk> | 2019-02-11 20:53:49 +0300 |
commit | 1d5bf86f957650f4fa456e12b07c9aa4cfaf5719 (patch) | |
tree | 0f3c749c39b8d48fa9a925de9624b897abe05b55 | |
parent | be97cfeda79d1425c02723ca64310b38d9539e5d (diff) | |
download | linux-1d5bf86f957650f4fa456e12b07c9aa4cfaf5719.tar.xz |
ext4: fix missing cleanup if ext4_alloc_flex_bg_array() fails while resizing
commit f348e2241fb73515d65b5d77dd9c174128a7fbf2 upstream.
Fixes: 117fff10d7f1 ("ext4: grow the s_flex_groups array as needed ...")
Signed-off-by: Vasily Averin <vvs@virtuozzo.com>
Signed-off-by: Theodore Ts'o <tytso@mit.edu>
Signed-off-by: Ben Hutchings <ben@decadent.org.uk>
-rw-r--r-- | fs/ext4/resize.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/fs/ext4/resize.c b/fs/ext4/resize.c index b1af45a17a5d..e2b4946d54db 100644 --- a/fs/ext4/resize.c +++ b/fs/ext4/resize.c @@ -1993,7 +1993,7 @@ retry: err = ext4_alloc_flex_bg_array(sb, n_group + 1); if (err) - return err; + goto out; err = ext4_mb_alloc_groupinfo(sb, n_group + 1); if (err) |