Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 9fcfe0c8 authored by Trond Myklebust's avatar Trond Myklebust
Browse files

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: default avatarTrond Myklebust <Trond.Myklebust@netapp.com>
Cc: stable@kernel.org
parent 0f79fd6f
Loading
Loading
Loading
Loading
+5 −0
Original line number Diff line number Diff line
@@ -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;