diff options
author | Jaegeuk Kim <jaegeuk@kernel.org> | 2016-01-21 09:13:14 +0800 |
---|---|---|
committer | luca020400 <luca.stefani.ge1@gmail.com> | 2016-04-04 17:16:16 +0200 |
commit | 12a325723ee73b0e8dd27538557abcf36fcfaf39 (patch) | |
tree | 93d3d3555ad4195b7a354ec85f85546a72c66015 | |
parent | c876665a68687d01393d085c88c38b92a5818b51 (diff) | |
download | android_external_f2fs-tools-12a325723ee73b0e8dd27538557abcf36fcfaf39.tar.gz android_external_f2fs-tools-12a325723ee73b0e8dd27538557abcf36fcfaf39.tar.bz2 android_external_f2fs-tools-12a325723ee73b0e8dd27538557abcf36fcfaf39.zip |
fsck.f2fs: nullify raw_super pointer
Otherwise it will cause double free.
Signed-off-by: Jaegeuk Kim <jaegeuk@kernel.org>
-rw-r--r-- | fsck/mount.c | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/fsck/mount.c b/fsck/mount.c index c4dfb0a..4c807f9 100644 --- a/fsck/mount.c +++ b/fsck/mount.c @@ -339,6 +339,7 @@ int validate_super_block(struct f2fs_sb_info *sbi, int block) } free(sbi->raw_super); + sbi->raw_super = NULL; MSG(0, "\tCan't find a valid F2FS superblock at 0x%x\n", block); return -EINVAL; |