Commit d9d5d8df authored by Suresh Jayaraman's avatar Suresh Jayaraman Committed by 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: default avatarSuresh Jayaraman <sjayaraman@suse.de>
Reviewed-and-Tested-by: default avatarJeff Layton <jlayton@redhat.com>
parent 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%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment