f2fs: check return value during recovery
authorJaegeuk Kim <jaegeuk.kim@samsung.com>
Thu, 3 Jan 2013 00:33:20 +0000 (09:33 +0900)
committerJaegeuk Kim <jaegeuk.kim@samsung.com>
Fri, 4 Jan 2013 00:46:27 +0000 (09:46 +0900)
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>
fs/f2fs/recovery.c

index 502c63d8f096fff9ec5ae6f3ddbc1e44a51fe5c2..6cc046d368158d541a589aaa476286d7248541de 100644 (file)
@@ -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: