mirror of
https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
synced 2026-05-02 13:23:35 -04:00
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: Jaegeuk Kim <jaegeuk.kim@samsung.com>
This commit is contained in:
@@ -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:
|
||||
|
||||
Reference in New Issue
Block a user