From: Weston Andros Adamson Date: Fri, 2 Nov 2012 22:00:56 +0000 (-0400) Subject: NFS4: nfs4_opendata_access should return errno X-Git-Url: https://git.stricted.de/?a=commitdiff_plain;h=998f40b550f257e436485291802fa938e4cf580f;p=GitHub%2FLineageOS%2Fandroid_kernel_motorola_exynos9610.git NFS4: nfs4_opendata_access should return errno Return errno - not an NFS4ERR_. This worked because NFS4ERR_ACCESS == EACCES. Signed-off-by: Weston Andros Adamson Signed-off-by: Trond Myklebust --- 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; } /*