diff options
| author | Liu Jian <liujian56@huawei.com> | 2024-11-15 17:38:04 +0800 |
|---|---|---|
| committer | Greg Kroah-Hartman <gregkh@linuxfoundation.org> | 2024-12-05 14:03:09 +0100 |
| commit | 66d11ca91bf5100ae2e6b5efad97e58d8448843a (patch) | |
| tree | e088444e30542a256ed44eb16a75edd90fb9eb4c /scripts/stackusage | |
| parent | 56a5d998c912566e4467487db7efe2818cce1e1f (diff) | |
| download | linux-66d11ca91bf5100ae2e6b5efad97e58d8448843a.tar.gz linux-66d11ca91bf5100ae2e6b5efad97e58d8448843a.tar.bz2 linux-66d11ca91bf5100ae2e6b5efad97e58d8448843a.zip | |
sunrpc: clear XPRT_SOCK_UPD_TIMEOUT when reset transport
[ Upstream commit 4db9ad82a6c823094da27de4825af693a3475d51 ]
Since transport->sock has been set to NULL during reset transport,
XPRT_SOCK_UPD_TIMEOUT also needs to be cleared. Otherwise, the
xs_tcp_set_socket_timeouts() may be triggered in xs_tcp_send_request()
to dereference the transport->sock that has been set to NULL.
Fixes: 7196dbb02ea0 ("SUNRPC: Allow changing of the TCP timeout parameters on the fly")
Signed-off-by: Li Lingfeng <lilingfeng3@huawei.com>
Signed-off-by: Liu Jian <liujian56@huawei.com>
Signed-off-by: Trond Myklebust <trond.myklebust@hammerspace.com>
Signed-off-by: Sasha Levin <sashal@kernel.org>
Diffstat (limited to 'scripts/stackusage')
0 files changed, 0 insertions, 0 deletions
