提交 d9d5d8df 编写于 作者: S Suresh Jayaraman 提交者: Jeff Layton

cifs: don't ignore cifs_posix_open_inode_helper return value

...and ensure that we propagate the error back to avoid any surprises.
Signed-off-by: NSuresh Jayaraman <sjayaraman@suse.de>
Reviewed-and-Tested-by: NJeff Layton <jlayton@redhat.com>
上级 db460242
......@@ -277,8 +277,8 @@ int cifs_open(struct inode *inode, struct file *file)
goto out;
}
cifs_posix_open_inode_helper(inode, file, pCifsInode,
oplock, netfid);
rc = cifs_posix_open_inode_helper(inode, file,
pCifsInode, oplock, netfid);
goto out;
} else if ((rc == -EINVAL) || (rc == -EOPNOTSUPP)) {
if (tcon->ses->serverNOS)
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册