diff options
author | Liu Xue <liuxueliu.liu@huawei.com> | 2015-12-21 07:44:41 +0000 |
---|---|---|
committer | Steve Kondik <steve@cyngn.com> | 2016-08-24 11:43:29 -0700 |
commit | 68c4e4fe7817bc9960b65367f48bb935196e9093 (patch) | |
tree | 8a7b078641f6bb5a3ce0639c879702960a9fbd92 /mkfs | |
parent | 7b4e1d02ddb343e83433d5dc13d3f7b7e2ee8506 (diff) | |
download | android_external_f2fs-tools-68c4e4fe7817bc9960b65367f48bb935196e9093.tar.gz android_external_f2fs-tools-68c4e4fe7817bc9960b65367f48bb935196e9093.tar.bz2 android_external_f2fs-tools-68c4e4fe7817bc9960b65367f48bb935196e9093.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>
Diffstat (limited to 'mkfs')
-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; } |