Commit c335a869 authored by Jaegeuk Kim's avatar Jaegeuk Kim

f2fs: check return value during recovery

This patch resolves Coverity #753102:

>>> No check of the return value of "f2fs_add_link(&dent, inode)".
Signed-off-by: default avatarJaegeuk Kim <jaegeuk.kim@samsung.com>
parent c1b75eab
......@@ -67,7 +67,7 @@ static int recover_dentry(struct page *ipage, struct inode *inode)
kunmap(page);
f2fs_put_page(page, 0);
} else {
f2fs_add_link(&dent, inode);
err = f2fs_add_link(&dent, inode);
}
iput(dir);
out:
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment