From: Trond Myklebust Date: Fri, 24 Nov 2017 17:00:24 +0000 (-0500) Subject: SUNRPC: Allow connect to return EHOSTUNREACH X-Git-Url: http://git.maquefel.me/?a=commitdiff_plain;h=4ba161a793d5f43757c35feff258d9f20a082940;p=linux.git SUNRPC: Allow connect to return EHOSTUNREACH Reported-by: Dmitry Vyukov Signed-off-by: Trond Myklebust Tested-by: Dmitry Vyukov Signed-off-by: Anna Schumaker --- diff --git a/net/sunrpc/xprtsock.c b/net/sunrpc/xprtsock.c index 684e356b40e4c..c2b2d489b57ba 100644 --- a/net/sunrpc/xprtsock.c +++ b/net/sunrpc/xprtsock.c @@ -2440,6 +2440,7 @@ static void xs_tcp_setup_socket(struct work_struct *work) case -ECONNREFUSED: case -ECONNRESET: case -ENETUNREACH: + case -EHOSTUNREACH: case -EADDRINUSE: case -ENOBUFS: /*