f2fs: fix a problem of using memory after free
authorYunlei He <heyunlei@huawei.com>
Mon, 19 Dec 2016 12:10:48 +0000 (20:10 +0800)
committerJaegeuk Kim <jaegeuk@kernel.org>
Sun, 29 Jan 2017 03:46:01 +0000 (12:46 +0900)
commit7855eba4d6102f811b6dd142d6c749f53b591fa3
treefe3d4bd41eec36e334bacc074a134e10626db079
parent07fe8d44409f88be8f4a4e8f22b47ee709a22657
f2fs: fix a problem of using memory after free

This patch fix a problem of using memory after free
in function __try_merge_extent_node.

Fixes: 0f825ee6e873 ("f2fs: add new interfaces for extent tree")
Cc: <stable@vger.kernel.org>
Signed-off-by: Yunlei He <heyunlei@huawei.com>
Reviewed-by: Chao Yu <yuchao0@huawei.com>
Signed-off-by: Jaegeuk Kim <jaegeuk@kernel.org>
fs/f2fs/extent_cache.c