Commit c73b9e0e authored by Trond Myklebust's avatar Trond Myklebust Committed by Greg Kroah-Hartman

SUNRPC: Handle EINVAL error returns from the TCP connect operation

commit 9fcfe0c8 upstream.

This can, for instance, happen if the user specifies a link local IPv6
address.
Signed-off-by: default avatarTrond Myklebust <Trond.Myklebust@netapp.com>
Signed-off-by: default avatarGreg Kroah-Hartman <gregkh@suse.de>
parent 967f9400
...@@ -1926,6 +1926,11 @@ static void xs_tcp_setup_socket(struct rpc_xprt *xprt, ...@@ -1926,6 +1926,11 @@ static void xs_tcp_setup_socket(struct rpc_xprt *xprt,
case -EALREADY: case -EALREADY:
xprt_clear_connecting(xprt); xprt_clear_connecting(xprt);
return; return;
case -EINVAL:
/* Happens, for instance, if the user specified a link
* local IPv6 address without a scope-id.
*/
goto out;
} }
out_eagain: out_eagain:
status = -EAGAIN; status = -EAGAIN;
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment