projects
/
openwrt
/
staging
/
blogic.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
0f79fd6
)
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
Trond 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
patch
|
blob
|
history
diff --git
a/net/sunrpc/xprtsock.c
b/net/sunrpc/xprtsock.c
index 721bafd95a0f44e8568bc8ebda3f0c1d9e33f392..712412982ceef0b8e7c0eb0752fe50b97e133294 100644
(file)
--- a/
net/sunrpc/xprtsock.c
+++ b/
net/sunrpc/xprtsock.c
@@
-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;