| | Date | Fri, 12 Mar 2010 16:13:25 -0800 | | From | Greg KH <> | | Subject | [patch 107/123] SUNRPC: Handle EINVAL error returns from the TCP connect operation |
| |
2.6.33-stable review patch. If anyone has any objections, please let me know.
----------------- From: Trond Myklebust <Trond.Myklebust@netapp.com>
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 | 5 +++++ 1 file changed, 5 insertions(+) --- a/net/sunrpc/xprtsock.c +++ b/net/sunrpc/xprtsock.c @@ -1912,6 +1912,11 @@ static void xs_tcp_setup_socket(struct r 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;
|