diff options
author | Liu Xue <liuxueliu.liu@huawei.com> | 2015-12-21 07:44:41 +0000 |
---|---|---|
committer | Greg Wallace <greg@gregtwallace.com> | 2016-01-19 22:02:21 -0500 |
commit | 9a521a84020034c9a0ba819779696c558615b8ad (patch) | |
tree | 6d3562bad1f379ff06179957570b6592babc1f85 | |
parent | 32dd5f4228c996064cd7ca401263fb03b586702a (diff) | |
download | android_external_f2fs-tools-9a521a84020034c9a0ba819779696c558615b8ad.tar.gz android_external_f2fs-tools-9a521a84020034c9a0ba819779696c558615b8ad.tar.bz2 android_external_f2fs-tools-9a521a84020034c9a0ba819779696c558615b8ad.zip |
mkfs.f2fs: fix check error when calloc sum_compact failure
We should check sum_compact value when deal with sum_compact
calloc failure.
Change-Id: Ia141de5bd6bc5a5d3075c7f1f2548fe378c4aa50
Signed-off-by: Xue Liu <liuxueliu.liu@huawei.com>
Signed-off-by: Jaegeuk Kim <jaegeuk@kernel.org>
-rw-r--r-- | mkfs/f2fs_format.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/mkfs/f2fs_format.c b/mkfs/f2fs_format.c index cb5379a..66d7342 100644 --- a/mkfs/f2fs_format.c +++ b/mkfs/f2fs_format.c @@ -432,7 +432,7 @@ static int f2fs_write_check_point_pack(void) } sum_compact = calloc(F2FS_BLKSIZE, 1); - if (sum == NULL) { + if (sum_compact == NULL) { MSG(1, "\tError: Calloc Failed for summay buffer!!!\n"); goto free_sum; } |