Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 821ff77c authored by Dan Carpenter's avatar Dan Carpenter Committed by Al Viro
Browse files

bfs: iget_locked() doesn't return an ERR_PTR



iget_locked() returns a NULL on error, it doesn't return an ERR_PTR.

Signed-off-by: default avatarDan Carpenter <dan.carpenter@oracle.com>
Signed-off-by: default avatarAl Viro <viro@zeniv.linux.org.uk>
parent 136eefa4
Loading
Loading
Loading
Loading
+1 −1
Original line number Original line Diff line number Diff line
@@ -40,7 +40,7 @@ struct inode *bfs_iget(struct super_block *sb, unsigned long ino)
	int block, off;
	int block, off;


	inode = iget_locked(sb, ino);
	inode = iget_locked(sb, ino);
	if (IS_ERR(inode))
	if (!inode)
		return ERR_PTR(-ENOMEM);
		return ERR_PTR(-ENOMEM);
	if (!(inode->i_state & I_NEW))
	if (!(inode->i_state & I_NEW))
		return inode;
		return inode;