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
This commit is contained in:
Trond Myklebust 2010-03-02 13:06:21 -05:00
parent 0f79fd6f5c
commit 9fcfe0c83c

View file

@ -1912,6 +1912,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;