mirror of
https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git
synced 2024-09-05 10:29:37 +00:00
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: Suresh Jayaraman <sjayaraman@suse.de> Reviewed-and-Tested-by: Jeff Layton <jlayton@redhat.com>
This commit is contained in:
parent
db460242bf
commit
d9d5d8df95
1 changed files with 2 additions and 2 deletions
|
@ -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)
|
||||
|
|
Loading…
Reference in a new issue