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

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
...@@ -324,8 +324,8 @@ static struct inode *befs_iget(struct super_block *sb, unsigned long ino) ...@@ -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); befs_debug(sb, "---> befs_read_inode() " "inode = %lu", ino);
inode = iget_locked(sb, ino); inode = iget_locked(sb, ino);
if (IS_ERR(inode)) if (!inode)
return inode; return ERR_PTR(-ENOMEM);
if (!(inode->i_state & I_NEW)) if (!(inode->i_state & I_NEW))
return inode; return inode;
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment