projects
/
openwrt
/
staging
/
blogic.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
ea0abbb
)
ext4: fix missing cleanup if ext4_alloc_flex_bg_array() fails while resizing
author
Vasily Averin
<vvs@virtuozzo.com>
Tue, 6 Nov 2018 21:16:01 +0000
(16:16 -0500)
committer
Theodore Ts'o
<tytso@mit.edu>
Tue, 6 Nov 2018 21:16:01 +0000
(16:16 -0500)
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
fs/ext4/resize.c
patch
|
blob
|
history
diff --git
a/fs/ext4/resize.c
b/fs/ext4/resize.c
index 3df326ee6d506328ac3379b644c7202f19bd43bf..5fee65afd58b8b30b02c1febb7e7ea2547409a1f 100644
(file)
--- a/
fs/ext4/resize.c
+++ b/
fs/ext4/resize.c
@@
-2022,7
+2022,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)