summaryrefslogtreecommitdiffstats
path: root/net
diff options
context:
space:
mode:
authorTrond Myklebust <Trond.Myklebust@netapp.com>2010-03-02 13:06:21 -0500
committerTrond Myklebust <Trond.Myklebust@netapp.com>2010-03-02 13:06:21 -0500
commit9fcfe0c83c3b04a759cde6b8c5f961237f17808b (patch)
treea0f80208f574745eb73f059e6d449133d5128b9f /net
parent0f79fd6f5c52e05918e44996b0a1b18383d0fbc2 (diff)
downloadop-kernel-dev-9fcfe0c83c3b04a759cde6b8c5f961237f17808b.zip
op-kernel-dev-9fcfe0c83c3b04a759cde6b8c5f961237f17808b.tar.gz
SUNRPC: Handle EINVAL error returns from the TCP connect operation
This can, for instance, happen if the user specifies a link local IPv6 address. Signed-off-by: Trond Myklebust <Trond.Myklebust@netapp.com> Cc: stable@kernel.org
Diffstat (limited to 'net')
-rw-r--r--net/sunrpc/xprtsock.c5
1 files changed, 5 insertions, 0 deletions
diff --git a/net/sunrpc/xprtsock.c b/net/sunrpc/xprtsock.c
index 721bafd..7124129 100644
--- a/net/sunrpc/xprtsock.c
+++ b/net/sunrpc/xprtsock.c
@@ -1912,6 +1912,11 @@ static void xs_tcp_setup_socket(struct rpc_xprt *xprt,
case -EALREADY:
xprt_clear_connecting(xprt);
return;
+ case -EINVAL:
+ /* Happens, for instance, if the user specified a link
+ * local IPv6 address without a scope-id.
+ */
+ goto out;
}
out_eagain:
status = -EAGAIN;
OpenPOWER on IntegriCloud