瀏覽代碼

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>
Suresh Jayaraman 15 年之前
父節點
當前提交
d9d5d8df95
共有 1 個文件被更改,包括 2 次插入2 次删除
  1. 2 2
      fs/cifs/file.c

+ 2 - 2
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)