提交 ac34a1b3 编写于 作者: R Rakesh Pandit 提交者: Al Viro

befs: iget_locked() doesn't return an ERR_PTR

Also fix befs_iget return value if iget_locked fails.
Signed-off-by: NRakesh Pandit <rakesh@tuxera.com>
Signed-off-by: NAl Viro <viro@zeniv.linux.org.uk>
上级 e6ff9a9f
......@@ -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;
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册