Skip to content

Commit

Permalink
f2fs: check return value during recovery
Browse files Browse the repository at this point in the history
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>
  • Loading branch information
Jaegeuk Kim committed Jan 4, 2013
1 parent c1b75ea commit c335a86
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion fs/f2fs/recovery.c
Original file line number Diff line number Diff line change
Expand Up @@ -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:
Expand Down

0 comments on commit c335a86

Please sign in to comment.