aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--net/sunrpc/clnt.c4
-rw-r--r--net/sunrpc/rpcb_clnt.c2
2 files changed, 3 insertions, 3 deletions
diff --git a/net/sunrpc/clnt.c b/net/sunrpc/clnt.c
index e53d71827132..04f6e15457e0 100644
--- a/net/sunrpc/clnt.c
+++ b/net/sunrpc/clnt.c
@@ -940,7 +940,7 @@ call_bind(struct rpc_task *task)
940static void 940static void
941call_bind_status(struct rpc_task *task) 941call_bind_status(struct rpc_task *task)
942{ 942{
943 int status = -EACCES; 943 int status = -EIO;
944 944
945 if (task->tk_status >= 0) { 945 if (task->tk_status >= 0) {
946 dprint_status(task); 946 dprint_status(task);
@@ -966,6 +966,7 @@ call_bind_status(struct rpc_task *task)
966 task->tk_pid); 966 task->tk_pid);
967 goto retry_timeout; 967 goto retry_timeout;
968 case -EPFNOSUPPORT: 968 case -EPFNOSUPPORT:
969 /* server doesn't support any rpcbind version we know of */
969 dprintk("RPC: %5u remote rpcbind service unavailable\n", 970 dprintk("RPC: %5u remote rpcbind service unavailable\n",
970 task->tk_pid); 971 task->tk_pid);
971 break; 972 break;
@@ -978,7 +979,6 @@ call_bind_status(struct rpc_task *task)
978 default: 979 default:
979 dprintk("RPC: %5u unrecognized rpcbind error (%d)\n", 980 dprintk("RPC: %5u unrecognized rpcbind error (%d)\n",
980 task->tk_pid, -task->tk_status); 981 task->tk_pid, -task->tk_status);
981 status = -EIO;
982 } 982 }
983 983
984 rpc_exit(task, status); 984 rpc_exit(task, status);
diff --git a/net/sunrpc/rpcb_clnt.c b/net/sunrpc/rpcb_clnt.c
index 9b06a217ab86..d7b9f02489e6 100644
--- a/net/sunrpc/rpcb_clnt.c
+++ b/net/sunrpc/rpcb_clnt.c
@@ -377,7 +377,7 @@ void rpcb_getport_async(struct rpc_task *task)
377 } 377 }
378 if (info[xprt->bind_index].rpc_proc == NULL) { 378 if (info[xprt->bind_index].rpc_proc == NULL) {
379 xprt->bind_index = 0; 379 xprt->bind_index = 0;
380 status = -EACCES; /* tell caller to try again later */ 380 status = -EPFNOSUPPORT;
381 dprintk("RPC: %5u %s: no more getport versions available\n", 381 dprintk("RPC: %5u %s: no more getport versions available\n",
382 task->tk_pid, __FUNCTION__); 382 task->tk_pid, __FUNCTION__);
383 goto bailout_nofree; 383 goto bailout_nofree;