diff options
author | Trond Myklebust <trond.myklebust@hammerspace.com> | 2022-04-29 12:27:30 -0400 |
---|---|---|
committer | Trond Myklebust <trond.myklebust@hammerspace.com> | 2022-04-29 20:38:27 -0400 |
commit | a3d0562d4dc039bca39445e1cddde7951662e17d (patch) | |
tree | 4bdeaf7a39b2ee413db40b4d93f57b628149931b /net/sunrpc | |
parent | 892de36fd4a98fab3298d417c051d9099af5448d (diff) | |
download | linux-stable-a3d0562d4dc039bca39445e1cddde7951662e17d.tar.gz linux-stable-a3d0562d4dc039bca39445e1cddde7951662e17d.tar.bz2 linux-stable-a3d0562d4dc039bca39445e1cddde7951662e17d.zip |
Revert "SUNRPC: attempt AF_LOCAL connect on setup"
This reverts commit 7073ea8799a8cf73db60270986f14e4aae20fa80.
We must not try to connect the socket while the transport is under
construction, because the mechanisms to safely tear it down are not in
place. As the code stands, we end up leaking the sockets on a connection
error.
Reported-by: wanghai (M) <wanghai38@huawei.com>
Cc: stable@vger.kernel.org
Signed-off-by: Trond Myklebust <trond.myklebust@hammerspace.com>
Diffstat (limited to 'net/sunrpc')
-rw-r--r-- | net/sunrpc/xprtsock.c | 3 |
1 files changed, 0 insertions, 3 deletions
diff --git a/net/sunrpc/xprtsock.c b/net/sunrpc/xprtsock.c index 25b8a8ead56b..650102a9c86a 100644 --- a/net/sunrpc/xprtsock.c +++ b/net/sunrpc/xprtsock.c @@ -2875,9 +2875,6 @@ static struct rpc_xprt *xs_setup_local(struct xprt_create *args) } xprt_set_bound(xprt); xs_format_peer_addresses(xprt, "local", RPCBIND_NETID_LOCAL); - ret = ERR_PTR(xs_local_setup_socket(transport)); - if (ret) - goto out_err; break; default: ret = ERR_PTR(-EAFNOSUPPORT); |