Skip to content

Commit 28dccc4

Browse files
Trond Myklebustgregkh
authored andcommitted
SUNRPC: RPC level errors should set task->tk_rpc_status
[ Upstream commit ed06fce ] Fix up a case in call_encode() where we're failing to set task->tk_rpc_status when an RPC level error occurred. Fixes: 9c5948c ("SUNRPC: task should be exit if encode return EKEYEXPIRED more times") Signed-off-by: Trond Myklebust <[email protected]> Signed-off-by: Sasha Levin <[email protected]>
1 parent 5626f95 commit 28dccc4

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

net/sunrpc/clnt.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1881,7 +1881,7 @@ call_encode(struct rpc_task *task)
18811881
break;
18821882
case -EKEYEXPIRED:
18831883
if (!task->tk_cred_retry) {
1884-
rpc_exit(task, task->tk_status);
1884+
rpc_call_rpcerror(task, task->tk_status);
18851885
} else {
18861886
task->tk_action = call_refresh;
18871887
task->tk_cred_retry--;

0 commit comments

Comments
 (0)