projects
/
firefly-linux-kernel-4.4.55.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
967f940
)
SUNRPC: Handle EINVAL error returns from the TCP connect operation
author
Trond Myklebust
<Trond.Myklebust@netapp.com>
Tue, 2 Mar 2010 18:06:21 +0000
(13:06 -0500)
committer
Greg Kroah-Hartman
<gregkh@suse.de>
Mon, 15 Mar 2010 15:50:13 +0000
(08:50 -0700)
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>
net/sunrpc/xprtsock.c
patch
|
blob
|
history
diff --git
a/net/sunrpc/xprtsock.c
b/net/sunrpc/xprtsock.c
index 37c5475ba258b51b22c6722aeb605741c2732051..5cdbf7c21b18b80d03b94d3dbb417eb000aa47db 100644
(file)
--- a/
net/sunrpc/xprtsock.c
+++ b/
net/sunrpc/xprtsock.c
@@
-1926,6
+1926,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;