projects
/
GitHub
/
LineageOS
/
android_kernel_motorola_exynos9610.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
c1b75ea
)
f2fs: check return value during recovery
author
Jaegeuk Kim
<jaegeuk.kim@samsung.com>
Thu, 3 Jan 2013 00:33:20 +0000
(09:33 +0900)
committer
Jaegeuk 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
patch
|
blob
|
blame
|
history
diff --git
a/fs/f2fs/recovery.c
b/fs/f2fs/recovery.c
index 502c63d8f096fff9ec5ae6f3ddbc1e44a51fe5c2..6cc046d368158d541a589aaa476286d7248541de 100644
(file)
--- a/
fs/f2fs/recovery.c
+++ b/
fs/f2fs/recovery.c
@@
-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: