projects
/
sdk
/
emulator
/
emulator-kernel.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
a5a1955
)
efs: iget_locked() doesn't return an ERR_PTR()
author
Dan Carpenter
<dan.carpenter@oracle.com>
Wed, 14 Aug 2013 09:49:40 +0000
(12:49 +0300)
committer
Al Viro
<viro@zeniv.linux.org.uk>
Sat, 24 Aug 2013 16:10:22 +0000
(12:10 -0400)
The iget_locked() function returns NULL on error and never an ERR_PTR.
Signed-off-by: Dan Carpenter <dan.carpenter@oracle.com>
Signed-off-by: Al Viro <viro@zeniv.linux.org.uk>
fs/efs/inode.c
patch
|
blob
|
history
diff --git
a/fs/efs/inode.c
b/fs/efs/inode.c
index f3913eb2c47482739681f51551cd6a325e6fc40d..d15ccf20f1b37a9734c338941106fdc0982e0ca4 100644
(file)
--- a/
fs/efs/inode.c
+++ b/
fs/efs/inode.c
@@
-57,7
+57,7
@@
struct inode *efs_iget(struct super_block *super, unsigned long ino)
struct inode *inode;
inode = iget_locked(super, ino);
- if (
IS_ERR(inode)
)
+ if (
!inode
)
return ERR_PTR(-ENOMEM);
if (!(inode->i_state & I_NEW))
return inode;