Skip to content

Commit

Permalink
efs: iget_locked() doesn't return an ERR_PTR()
Browse files Browse the repository at this point in the history
The iget_locked() function returns NULL on error and never an ERR_PTR.

Signed-off-by: Dan Carpenter <[email protected]>
Signed-off-by: Al Viro <[email protected]>
  • Loading branch information
Dan Carpenter authored and Al Viro committed Aug 24, 2013
1 parent a5a1955 commit 136eefa
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion fs/efs/inode.c
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down

0 comments on commit 136eefa

Please sign in to comment.