summaryrefslogtreecommitdiffstats
path: root/fs/nfs
diff options
context:
space:
mode:
authorChuck Lever <chuck.lever@oracle.com>2021-07-15 21:52:19 +0200
committerAnna Schumaker <Anna.Schumaker@Netapp.com>2021-08-10 20:18:35 +0200
commit9082e1d914f8b27114352b1940bbcc7522f682e7 (patch)
tree01998e00d4ea84c91db1f13ec15a7cf57a50c783 /fs/nfs
parentSUNRPC: Set rq_auth_stat in the pg_authenticate() callout (diff)
downloadlinux-9082e1d914f8b27114352b1940bbcc7522f682e7.tar.xz
linux-9082e1d914f8b27114352b1940bbcc7522f682e7.zip
SUNRPC: Eliminate the RQ_AUTHERR flag
Now that there is an alternate method for returning an auth_stat value, replace the RQ_AUTHERR flag with use of that new method. Signed-off-by: Chuck Lever <chuck.lever@oracle.com> Signed-off-by: Anna Schumaker <Anna.Schumaker@Netapp.com>
Diffstat (limited to 'fs/nfs')
-rw-r--r--fs/nfs/callback_xdr.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/fs/nfs/callback_xdr.c b/fs/nfs/callback_xdr.c
index c5348ba81129..7ff99155b023 100644
--- a/fs/nfs/callback_xdr.c
+++ b/fs/nfs/callback_xdr.c
@@ -988,7 +988,8 @@ static __be32 nfs4_callback_compound(struct svc_rqst *rqstp)
out_invalidcred:
pr_warn_ratelimited("NFS: NFSv4 callback contains invalid cred\n");
- return svc_return_autherr(rqstp, rpc_autherr_badcred);
+ rqstp->rq_auth_stat = rpc_autherr_badcred;
+ return rpc_success;
}
/*