]> git.baikalelectronics.ru Git - kernel.git/commit
SUNRPC: Don't leak sockets in xs_local_connect()
authorTrond Myklebust <trond.myklebust@hammerspace.com>
Thu, 28 Apr 2022 15:08:13 +0000 (11:08 -0400)
committerTrond Myklebust <trond.myklebust@hammerspace.com>
Thu, 28 Apr 2022 15:28:37 +0000 (11:28 -0400)
commita163d95fb89c066f8a053aa6c28326e478877273
treee218a9e07d25aee0c8511bc55e0eca091316da61
parentfbb9cf9b63b70f2d4003b1406c178bd94f498ca3
SUNRPC: Don't leak sockets in xs_local_connect()

If there is still a closed socket associated with the transport, then we
need to trigger an autoclose before we can set up a new connection.

Reported-by: wanghai (M) <wanghai38@huawei.com>
Fixes: bc20328f6fd4 ("SUNRPC: Ensure we flush any closed sockets before xs_xprt_free()")
Signed-off-by: Trond Myklebust <trond.myklebust@hammerspace.com>
net/sunrpc/xprtsock.c