Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

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

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
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -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;
}

/*