aboutsummaryrefslogtreecommitdiffstats
path: root/net/sunrpc
diff options
context:
space:
mode:
Diffstat (limited to 'net/sunrpc')
-rw-r--r--net/sunrpc/rpcb_clnt.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/net/sunrpc/rpcb_clnt.c b/net/sunrpc/rpcb_clnt.c
index 34738c5cf312..a0c9f6905517 100644
--- a/net/sunrpc/rpcb_clnt.c
+++ b/net/sunrpc/rpcb_clnt.c
@@ -446,6 +446,10 @@ static void rpcb_getport_done(struct rpc_task *child, void *data)
446 struct rpc_xprt *xprt = map->r_xprt; 446 struct rpc_xprt *xprt = map->r_xprt;
447 int status = child->tk_status; 447 int status = child->tk_status;
448 448
449 /* Garbage reply: retry with a lesser rpcbind version */
450 if (status == -EIO)
451 status = -EPROTONOSUPPORT;
452
449 /* rpcbind server doesn't support this rpcbind protocol version */ 453 /* rpcbind server doesn't support this rpcbind protocol version */
450 if (status == -EPROTONOSUPPORT) 454 if (status == -EPROTONOSUPPORT)
451 xprt->bind_index++; 455 xprt->bind_index++;