SUNRPC: RPC level errors should set task->tk_rpc_status
authorTrond Myklebust <trond.myklebust@hammerspace.com>
Wed, 3 Aug 2022 18:55:03 +0000 (14:55 -0400)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Wed, 31 Aug 2022 15:16:37 +0000 (17:16 +0200)
commit28dccc4eaf9864f194b0eb0c44b1e5cbf9935971
tree0c6e4ba782ea8a8383806db4f1e2d193a3a94a8b
parent5626f95356111602ad26fc05445a4d1f818a0992
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>
net/sunrpc/clnt.c