diff options
author | Trond Myklebust <Trond.Myklebust@netapp.com> | 2010-03-02 13:06:21 -0500 |
---|---|---|
committer | Greg Kroah-Hartman <gregkh@suse.de> | 2010-03-15 12:07:03 -0400 |
commit | daaeb8a8219068bdb6dc597fc4dfe8fcab9dbc4c (patch) | |
tree | fef56c982290f0e2ea6a659183beb0901157c8e5 /net | |
parent | f774f57a79ba1515eda139023cdc00b7209ab96b (diff) |
SUNRPC: Handle EINVAL error returns from the TCP connect operation
commit 9fcfe0c83c3b04a759cde6b8c5f961237f17808b 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>
Diffstat (limited to 'net')
-rw-r--r-- | net/sunrpc/xprtsock.c | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/net/sunrpc/xprtsock.c b/net/sunrpc/xprtsock.c index 3d739e5d15d8..4df801dc3488 100644 --- a/net/sunrpc/xprtsock.c +++ b/net/sunrpc/xprtsock.c | |||
@@ -1912,6 +1912,11 @@ static void xs_tcp_setup_socket(struct rpc_xprt *xprt, | |||
1912 | case -EALREADY: | 1912 | case -EALREADY: |
1913 | xprt_clear_connecting(xprt); | 1913 | xprt_clear_connecting(xprt); |
1914 | return; | 1914 | return; |
1915 | case -EINVAL: | ||
1916 | /* Happens, for instance, if the user specified a link | ||
1917 | * local IPv6 address without a scope-id. | ||
1918 | */ | ||
1919 | goto out; | ||
1915 | } | 1920 | } |
1916 | out_eagain: | 1921 | out_eagain: |
1917 | status = -EAGAIN; | 1922 | status = -EAGAIN; |