Skip to content

Commit ed06fce

Browse files
author
Trond Myklebust
committed
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: 9c5948c ("SUNRPC: task should be exit if encode return EKEYEXPIRED more times") Signed-off-by: Trond Myklebust <[email protected]>
1 parent fcfc8be commit ed06fce

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
@@ -1902,7 +1902,7 @@ call_encode(struct rpc_task *task)
19021902
break;
19031903
case -EKEYEXPIRED:
19041904
if (!task->tk_cred_retry) {
1905-
rpc_exit(task, task->tk_status);
1905+
rpc_call_rpcerror(task, task->tk_status);
19061906
} else {
19071907
task->tk_action = call_refresh;
19081908
task->tk_cred_retry--;

0 commit comments

Comments
 (0)