aboutsummaryrefslogtreecommitdiffstats
path: root/misc
diff options
context:
space:
mode:
authorTheodore Ts'o <tytso@mit.edu>2018-08-19 16:46:04 -0400
committerTheodore Ts'o <tytso@mit.edu>2018-08-21 01:22:18 -0400
commited50488ec0f0edc9156651da004d37f7b111920b (patch)
treedeed4e6592eceeff579081609d245be9b7d666d4 /misc
parent40e66e2e8be046f909dfff73b3909f15c9d0f400 (diff)
downloadandroid_external_e2fsprogs-ed50488ec0f0edc9156651da004d37f7b111920b.tar.gz
android_external_e2fsprogs-ed50488ec0f0edc9156651da004d37f7b111920b.tar.bz2
android_external_e2fsprogs-ed50488ec0f0edc9156651da004d37f7b111920b.zip
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 <chris2553@googlemail.com> Signed-off-by: Theodore Ts'o <tytso@mit.edu>
Diffstat (limited to 'misc')
-rw-r--r--misc/tune2fs.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/misc/tune2fs.c b/misc/tune2fs.c
index 723f7ae3..b8cddfa1 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