Skip to content

Commit

Permalink
cifs: don't ignore cifs_posix_open_inode_helper return value
Browse files Browse the repository at this point in the history
...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>
  • Loading branch information
Suresh Jayaraman authored and Jeff Layton committed Jun 16, 2010
1 parent db46024 commit d9d5d8d
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions fs/cifs/file.c
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand Down

0 comments on commit d9d5d8d

Please sign in to comment.