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

Commit ac34a1b3 authored by Rakesh Pandit's avatar Rakesh Pandit Committed by Al Viro
Browse files

befs: iget_locked() doesn't return an ERR_PTR



Also fix befs_iget return value if iget_locked fails.

Signed-off-by: default avatarRakesh Pandit <rakesh@tuxera.com>
Signed-off-by: default avatarAl Viro <viro@zeniv.linux.org.uk>
parent e6ff9a9f
Loading
Loading
Loading
Loading
+2 −2
Original line number Diff line number Diff line
@@ -324,8 +324,8 @@ static struct inode *befs_iget(struct super_block *sb, unsigned long ino)
	befs_debug(sb, "---> befs_read_inode() " "inode = %lu", ino);

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