Skip to content

Commit

Permalink
bfs: iget_locked() doesn't return an ERR_PTR
Browse files Browse the repository at this point in the history
iget_locked() returns a NULL on error, it doesn't return 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 136eefa commit 821ff77
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion fs/bfs/inode.c
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down

0 comments on commit 821ff77

Please sign in to comment.