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:
136eefa
)
bfs: iget_locked() doesn't return an ERR_PTR
author
Dan Carpenter
<dan.carpenter@oracle.com>
Wed, 14 Aug 2013 09:51:03 +0000
(12:51 +0300)
committer
Al Viro
<viro@zeniv.linux.org.uk>
Sat, 24 Aug 2013 16:10:22 +0000
(12:10 -0400)
iget_locked() returns a NULL on error, it doesn't return an ERR_PTR.
Signed-off-by: Dan Carpenter <dan.carpenter@oracle.com>
Signed-off-by: Al Viro <viro@zeniv.linux.org.uk>
fs/bfs/inode.c
patch
|
blob
|
blame
|
history
diff --git
a/fs/bfs/inode.c
b/fs/bfs/inode.c
index 5e376bb934196d2b8a0e104473c637439e5e2244..8defc6b3f9a21b6e4971f9576a0fc202f7ba2e85 100644
(file)
--- a/
fs/bfs/inode.c
+++ b/
fs/bfs/inode.c
@@
-40,7
+40,7
@@
struct inode *bfs_iget(struct super_block *sb, unsigned long ino)
int block, off;
inode = iget_locked(sb, ino);
- if (
IS_ERR(inode)
)
+ if (
!inode
)
return ERR_PTR(-ENOMEM);
if (!(inode->i_state & I_NEW))
return inode;