From: Trond Myklebust Date: Wed, 3 Aug 2022 18:55:03 +0000 (-0400) Subject: SUNRPC: RPC level errors should set task->tk_rpc_status X-Git-Tag: v6.6.17~6627^2~4 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=ed06fce0b034b2e25bd93430f5c4cbb28036cc1a;p=platform%2Fkernel%2Flinux-rpi.git SUNRPC: RPC level errors should set task->tk_rpc_status Fix up a case in call_encode() where we're failing to set task->tk_rpc_status when an RPC level error occurred. Fixes: 9c5948c24869 ("SUNRPC: task should be exit if encode return EKEYEXPIRED more times") Signed-off-by: Trond Myklebust --- diff --git a/net/sunrpc/clnt.c b/net/sunrpc/clnt.c index b098e70..7d268a29 100644 --- a/net/sunrpc/clnt.c +++ b/net/sunrpc/clnt.c @@ -1902,7 +1902,7 @@ call_encode(struct rpc_task *task) break; case -EKEYEXPIRED: if (!task->tk_cred_retry) { - rpc_exit(task, task->tk_status); + rpc_call_rpcerror(task, task->tk_status); } else { task->tk_action = call_refresh; task->tk_cred_retry--;