Skip to content

Commit 136eefa

Browse files
Dan CarpenterAl Viro
authored andcommitted
efs: iget_locked() doesn't return an ERR_PTR()
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>
1 parent a5a1955 commit 136eefa

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

‎fs/efs/inode.c‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -57,7 +57,7 @@ struct inode *efs_iget(struct super_block *super, unsigned long ino)
5757
struct inode *inode;
5858

5959
inode = iget_locked(super, ino);
60-
if (IS_ERR(inode))
60+
if (!inode)
6161
return ERR_PTR(-ENOMEM);
6262
if (!(inode->i_state & I_NEW))
6363
return inode;

0 commit comments

Comments
 (0)