projects
/
GitHub
/
exynos8895
/
android_kernel_samsung_universal8895.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
6f6fd83
)
f2fs: dereferencing an ERR_PTR
author
Dan Carpenter
<dan.carpenter@oracle.com>
Thu, 23 May 2013 10:02:13 +0000
(13:02 +0300)
committer
Jaegeuk Kim
<jaegeuk.kim@samsung.com>
Tue, 28 May 2013 06:03:04 +0000
(15:03 +0900)
There is an error path where "dir" is an ERR_PTR.
Signed-off-by: Dan Carpenter <dan.carpenter@oracle.com>
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 dcd8e860aad3aefa2bcfd88ef9adcfdf243a4cdd..0dd2ce1b492f9ba268c3720af6d85d77cc644c9b 100644
(file)
--- a/
fs/f2fs/recovery.c
+++ b/
fs/f2fs/recovery.c
@@
-71,7
+71,8
@@
static int recover_dentry(struct page *ipage, struct inode *inode)
out:
f2fs_msg(inode->i_sb, KERN_NOTICE, "recover_inode and its dentry: "
"ino = %x, name = %s, dir = %lx, err = %d",
- ino_of_node(ipage), raw_inode->i_name, dir->i_ino, err);
+ ino_of_node(ipage), raw_inode->i_name,
+ IS_ERR(dir) ? 0 : dir->i_ino, err);
return err;
}