summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorWeston Andros Adamson <dros@netapp.com>2012-11-02 23:00:56 +0100
committerTrond Myklebust <Trond.Myklebust@netapp.com>2012-11-02 23:51:54 +0100
commit998f40b550f257e436485291802fa938e4cf580f (patch)
treeed84ccfb1020d6d074d4e07f25b6ea9a78431d3f
parentNFSv4: Initialise the NFSv4.1 slot table highest_used_slotid correctly (diff)
downloadlinux-998f40b550f257e436485291802fa938e4cf580f.tar.xz
linux-998f40b550f257e436485291802fa938e4cf580f.zip
NFS4: nfs4_opendata_access should return errno
Return errno - not an NFS4ERR_. This worked because NFS4ERR_ACCESS == EACCES. Signed-off-by: Weston Andros Adamson <dros@netapp.com> Signed-off-by: Trond Myklebust <Trond.Myklebust@netapp.com>
-rw-r--r--fs/nfs/nfs4proc.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/fs/nfs/nfs4proc.c b/fs/nfs/nfs4proc.c
index 091baab3eccf..5eec4429970c 100644
--- a/fs/nfs/nfs4proc.c
+++ b/fs/nfs/nfs4proc.c
@@ -1749,7 +1749,7 @@ static int nfs4_opendata_access(struct rpc_cred *cred,
/* even though OPEN succeeded, access is denied. Close the file */
nfs4_close_state(state, fmode);
- return -NFS4ERR_ACCESS;
+ return -EACCES;
}
/*