summaryrefslogtreecommitdiff
path: root/net
diff options
context:
space:
mode:
authorTrond Myklebust <trond.myklebust@hammerspace.com>2022-08-03 14:55:03 -0400
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>2022-08-31 17:15:15 +0200
commit8be096f018e4d4a4d430c8c87c4009c7024ffb90 (patch)
tree6e39152b07a64181f5aed7aa2ccd752c86b8ac2f /net
parent5e49ea099850feadcbf33c74b4f514a3e8049b91 (diff)
downloadlinux-8be096f018e4d4a4d430c8c87c4009c7024ffb90.tar.gz
linux-8be096f018e4d4a4d430c8c87c4009c7024ffb90.tar.bz2
linux-8be096f018e4d4a4d430c8c87c4009c7024ffb90.zip
SUNRPC: RPC level errors should set task->tk_rpc_status
[ Upstream commit ed06fce0b034b2e25bd93430f5c4cbb28036cc1a ] 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 <trond.myklebust@hammerspace.com> Signed-off-by: Sasha Levin <sashal@kernel.org>
Diffstat (limited to 'net')
-rw-r--r--net/sunrpc/clnt.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/net/sunrpc/clnt.c b/net/sunrpc/clnt.c
index c5af31312e0c..78c6648af782 100644
--- a/net/sunrpc/clnt.c
+++ b/net/sunrpc/clnt.c
@@ -1867,7 +1867,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--;