]> git.baikalelectronics.ru Git - kernel.git/commit
SUNRPC: Fix Oops in xs_tcp_send_request() when transport is disconnected
authorTrond Myklebust <trond.myklebust@hammerspace.com>
Mon, 17 May 2021 12:50:11 +0000 (08:50 -0400)
committerTrond Myklebust <trond.myklebust@hammerspace.com>
Thu, 20 May 2021 16:17:08 +0000 (12:17 -0400)
commitcffb12929ab4c8f74aeb19c1074861f9ad0a5d2c
tree26e64b5b8e7d7f5cc8623fb8911e94090d04f895
parent1c74614bc55b0ac1caa5e4a10549425c27ac4f0c
SUNRPC: Fix Oops in xs_tcp_send_request() when transport is disconnected

If a disconnection occurs while we're trying to reply to a server
callback, then we may end up calling xs_tcp_send_request() with a NULL
value for transport->inet, which trips up the call to
tcp_sock_set_cork().

Fixes: da00f1166f6e ("SUNRPC: Set TCP_CORK until the transmit queue is empty")
Cc: stable@vger.kernel.org
Signed-off-by: Trond Myklebust <trond.myklebust@hammerspace.com>
net/sunrpc/xprtsock.c