fsck.f2fs: check and fix i_namelen to avoid double free
authorYunlong Song <yunlong.song@huawei.com>
Mon, 18 Dec 2017 13:25:27 +0000 (21:25 +0800)
committerJaegeuk Kim <jaegeuk@kernel.org>
Tue, 19 Dec 2017 23:51:16 +0000 (15:51 -0800)
commitddc2d9b4ecc95c78866125ac8b01ab9eda8bcc0d
treea927d75875889ec01e9303c5b1abead91f65b122
parent2df73631060b53a4f5c5d84b6b9c6af348ff8465
fsck.f2fs: check and fix i_namelen to avoid double free

This checks i_namelen between inode block and its dentry.

Signed-off-by: Yunlong Song <yunlong.song@huawei.com>
Signed-off-by: Jaegeuk Kim <jaegeuk@kernel.org>
fsck/fsck.c
fsck/fsck.h