diff options
author | Chuck Lever <chuck.lever@oracle.com> | 2023-01-02 18:07:32 +0100 |
---|---|---|
committer | Chuck Lever <chuck.lever@oracle.com> | 2023-02-20 15:20:19 +0100 |
commit | 6898b47a0f9e118636d82c3e2c39e50f82290a91 (patch) | |
tree | a0e1087245214e571a392f3d94b5e92e53424852 /net/sunrpc/auth_gss/svcauth_gss.c | |
parent | SUNRPC: Convert the svcauth_gss_accept() pre-amble to use xdr_stream (diff) | |
download | linux-6898b47a0f9e118636d82c3e2c39e50f82290a91.tar.xz linux-6898b47a0f9e118636d82c3e2c39e50f82290a91.zip |
SUNRPC: Hoist init_decode out of svc_authenticate()
Now that each ->accept method has been converted to use xdr_stream,
the svcxdr_init_decode() calls can be hoisted back up into the
generic RPC server code.
The dprintk in svc_authenticate() is removed, since
trace_svc_authenticate() reports the same information.
Reviewed-by: Jeff Layton <jlayton@kernel.org>
Signed-off-by: Chuck Lever <chuck.lever@oracle.com>
Diffstat (limited to 'net/sunrpc/auth_gss/svcauth_gss.c')
-rw-r--r-- | net/sunrpc/auth_gss/svcauth_gss.c | 2 |
1 files changed, 0 insertions, 2 deletions
diff --git a/net/sunrpc/auth_gss/svcauth_gss.c b/net/sunrpc/auth_gss/svcauth_gss.c index f6d62e39840e..b3a6717e32fd 100644 --- a/net/sunrpc/auth_gss/svcauth_gss.c +++ b/net/sunrpc/auth_gss/svcauth_gss.c @@ -1619,8 +1619,6 @@ svcauth_gss_accept(struct svc_rqst *rqstp) int ret; struct sunrpc_net *sn = net_generic(SVC_NET(rqstp), sunrpc_net_id); - svcxdr_init_decode(rqstp); - rqstp->rq_auth_stat = rpc_autherr_badcred; if (!svcdata) svcdata = kmalloc(sizeof(*svcdata), GFP_KERNEL); |