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

Commit 136eefa4 authored by Dan Carpenter's avatar Dan Carpenter Committed by Al Viro
Browse files

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: default avatarDan Carpenter <dan.carpenter@oracle.com>
Signed-off-by: default avatarAl Viro <viro@zeniv.linux.org.uk>
parent a5a1955e
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -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;