fsck.f2fs: deal with realloc size and realloc failure
authorLiu Xue <liuxueliu.liu@huawei.com>
Mon, 14 Dec 2015 11:31:28 +0000 (11:31 +0000)
committerJaegeuk Kim <jaegeuk@kernel.org>
Mon, 14 Dec 2015 18:11:48 +0000 (10:11 -0800)
commit0ff98a36791af6e4191f7e4360a8eeec46882f51
tree5cb880ac1b44bf13436110c476a0c511db23de49
parent25e7128efa0ec86acb4bd67d9de946857bfe3f03
fsck.f2fs: deal with realloc size and realloc failure

Deal with realloc failure to avoid memory leak and memory free,
and assert realloc size to avoid double free for tree_mark.

Signed-off-by: Xue Liu <liuxueliu.liu@huawei.com>
Signed-off-by: Jaegeuk Kim <jaegeuk@kernel.org>
fsck/fsck.c