diff options
author | Jaegeuk Kim <jaegeuk@kernel.org> | 2016-01-21 09:13:14 +0800 |
---|---|---|
committer | Steve Kondik <steve@cyngn.com> | 2016-08-24 11:43:29 -0700 |
commit | eee5c503fe8c9846e413f00ec867709431f62090 (patch) | |
tree | b507970c0d60fd13a830d5d7f358500c29d595d0 | |
parent | a8bc4cc0fc23c5f90a44e81f68d01fe053adcec0 (diff) | |
download | android_external_f2fs-tools-eee5c503fe8c9846e413f00ec867709431f62090.tar.gz android_external_f2fs-tools-eee5c503fe8c9846e413f00ec867709431f62090.tar.bz2 android_external_f2fs-tools-eee5c503fe8c9846e413f00ec867709431f62090.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; |