Patchwork [7/8] cifs: don't ignore cifs_posix_open_inode_helper return value

login
register
mail settings
Submitter Jeff Layton
Date June 1, 2010, 2:54 p.m.
Message ID <1275404092-8400-8-git-send-email-jlayton@redhat.com>
Download mbox | patch
Permalink /patch/54219/
State New
Headers show

Comments

Jeff Layton - June 1, 2010, 2:54 p.m.
From: Suresh Jayaraman <sjayaraman@suse.de>

...and ensure that we propagate the error back to avoid any surprises.

Signed-off-by: Suresh Jayaraman <sjayaraman@suse.de>
---
 fs/cifs/file.c |    4 ++--
 1 files changed, 2 insertions(+), 2 deletions(-)

Patch

diff --git a/fs/cifs/file.c b/fs/cifs/file.c
index 5b9d1f2..02a2df9 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)