]> bbs.cooldavid.org Git - net-next-2.6.git/commitdiff
SUNRPC: Handle EINVAL error returns from the TCP connect operation
authorTrond Myklebust <Trond.Myklebust@netapp.com>
Tue, 2 Mar 2010 18:06:21 +0000 (13:06 -0500)
committerTrond Myklebust <Trond.Myklebust@netapp.com>
Tue, 2 Mar 2010 18:06:21 +0000 (13:06 -0500)
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
net/sunrpc/xprtsock.c

index 721bafd95a0f44e8568bc8ebda3f0c1d9e33f392..712412982ceef0b8e7c0eb0752fe50b97e133294 100644 (file)
@@ -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;