From: Theodore Ts'o Date: Sun, 19 Aug 2018 20:46:04 +0000 (-0400) Subject: tune2fs: fix dereference of freed memory after journal replay X-Git-Tag: v1.44.5~39 X-Git-Url: https://git.whamcloud.com/?a=commitdiff_plain;h=ed50488ec0f0edc9156651da004d37f7b111920b;p=tools%2Fe2fsprogs.git tune2fs: fix dereference of freed memory after journal replay This can be found by running the test t_replay_and_set under valgrind. Reported-by: Chris Clayton Signed-off-by: Theodore Ts'o --- diff --git a/misc/tune2fs.c b/misc/tune2fs.c index 723f7ae..b8cddfa 100644 --- a/misc/tune2fs.c +++ b/misc/tune2fs.c @@ -3051,6 +3051,7 @@ _("Warning: The journal is dirty. You may wish to replay the journal like:\n\n" ext2fs_close_free(&fs); exit(1); } + sb = fs->super; } #endif