Commit 998f40b5 authored by Weston Andros Adamson's avatar Weston Andros Adamson Committed by Trond Myklebust

NFS4: nfs4_opendata_access should return errno

Return errno - not an NFS4ERR_. This worked because NFS4ERR_ACCESS == EACCES.
Signed-off-by: default avatarWeston Andros Adamson <dros@netapp.com>
Signed-off-by: default avatarTrond Myklebust <Trond.Myklebust@netapp.com>
parent f9b1ef5f
...@@ -1749,7 +1749,7 @@ static int nfs4_opendata_access(struct rpc_cred *cred, ...@@ -1749,7 +1749,7 @@ static int nfs4_opendata_access(struct rpc_cred *cred,
/* even though OPEN succeeded, access is denied. Close the file */ /* even though OPEN succeeded, access is denied. Close the file */
nfs4_close_state(state, fmode); nfs4_close_state(state, fmode);
return -NFS4ERR_ACCESS; return -EACCES;
} }
/* /*
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment