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:
Suresh Jayaraman 2010-06-16 13:40:17 -04:00 committed by Jeff Layton
parent db460242bf
commit d9d5d8df95

View File

@ -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)