mirror of
https://github.com/hardkernel/linux.git
synced 2026-06-10 21:07:02 +09:00
SUNRPC: Handle EINVAL error returns from the TCP connect operation
commit 9fcfe0c83c upstream.
This can, for instance, happen if the user specifies a link local IPv6
address.
Signed-off-by: Trond Myklebust <Trond.Myklebust@netapp.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
This commit is contained in:
committed by
Greg Kroah-Hartman
parent
f774f57a79
commit
daaeb8a821
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user