diff options
author | Suresh Jayaraman <sjayaraman@suse.de> | 2010-06-16 13:40:17 -0400 |
---|---|---|
committer | Jeff Layton <jlayton@redhat.com> | 2010-06-16 13:40:17 -0400 |
commit | d9d5d8df953a98621be5b8889e05043d6e32052e (patch) | |
tree | bf96dc3b99f057a43965fcc3be05fd17d8a24b7d /fs/cifs | |
parent | db460242bf75624344efd670ec0f620f476529a3 (diff) | |
download | linux-d9d5d8df953a98621be5b8889e05043d6e32052e.tar.gz linux-d9d5d8df953a98621be5b8889e05043d6e32052e.tar.bz2 linux-d9d5d8df953a98621be5b8889e05043d6e32052e.zip |
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>
Diffstat (limited to 'fs/cifs')
-rw-r--r-- | fs/cifs/file.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/fs/cifs/file.c b/fs/cifs/file.c index 5b9d1f25aaec..02a2df9cdd9c 100644 --- a/fs/cifs/file.c +++ b/fs/cifs/file.c @@ -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) |