Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit d9d5d8df authored by Suresh Jayaraman's avatar Suresh Jayaraman Committed by Jeff Layton
Browse files

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
Loading
Loading
Loading
Loading
+2 −2
Original line number Diff line number Diff line
@@ -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)