aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorVasily Averin <vvs@virtuozzo.com>2018-11-06 16:16:01 -0500
committerTheodore Ts'o <tytso@mit.edu>2018-11-06 16:16:01 -0500
commitf348e2241fb73515d65b5d77dd9c174128a7fbf2 (patch)
treebace60240c2ee1f405c5796f4138b65fbe0fe922
parentea0abbb648452cdb6e1734b702b6330a7448fcf8 (diff)
ext4: fix missing cleanup if ext4_alloc_flex_bg_array() fails while resizing
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> Cc: stable@kernel.org # 3.7
-rw-r--r--fs/ext4/resize.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/fs/ext4/resize.c b/fs/ext4/resize.c
index 3df326ee6d50..5fee65afd58b 100644
--- a/fs/ext4/resize.c
+++ b/fs/ext4/resize.c
@@ -2022,7 +2022,7 @@ retry:
2022 2022
2023 err = ext4_alloc_flex_bg_array(sb, n_group + 1); 2023 err = ext4_alloc_flex_bg_array(sb, n_group + 1);
2024 if (err) 2024 if (err)
2025 return err; 2025 goto out;
2026 2026
2027 err = ext4_mb_alloc_groupinfo(sb, n_group + 1); 2027 err = ext4_mb_alloc_groupinfo(sb, n_group + 1);
2028 if (err) 2028 if (err)