From: Suresh Jayaraman Date: Wed, 16 Jun 2010 17:40:17 +0000 (-0400) Subject: cifs: don't ignore cifs_posix_open_inode_helper return value X-Git-Tag: v2.6.35-rc4~66^2~3 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=d9d5d8df953a98621be5b8889e05043d6e32052e;p=profile%2Fcommon%2Fkernel-common.git 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 Reviewed-and-Tested-by: Jeff Layton --- 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)