aboutsummaryrefslogtreecommitdiffstats
path: root/net/sunrpc/clnt.c
diff options
context:
space:
mode:
Diffstat (limited to 'net/sunrpc/clnt.c')
-rw-r--r--net/sunrpc/clnt.c5
1 files changed, 3 insertions, 2 deletions
diff --git a/net/sunrpc/clnt.c b/net/sunrpc/clnt.c
index d00e8135f866..aca3ab6fc140 100644
--- a/net/sunrpc/clnt.c
+++ b/net/sunrpc/clnt.c
@@ -1390,13 +1390,14 @@ rpc_verify_header(struct rpc_task *task)
1390 } 1390 }
1391 if ((len -= 3) < 0) 1391 if ((len -= 3) < 0)
1392 goto out_overflow; 1392 goto out_overflow;
1393 p += 1; /* skip XID */
1394 1393
1394 p += 1; /* skip XID */
1395 if ((n = ntohl(*p++)) != RPC_REPLY) { 1395 if ((n = ntohl(*p++)) != RPC_REPLY) {
1396 dprintk("RPC: %5u %s: not an RPC reply: %x\n", 1396 dprintk("RPC: %5u %s: not an RPC reply: %x\n",
1397 task->tk_pid, __func__, n); 1397 task->tk_pid, __func__, n);
1398 goto out_garbage; 1398 goto out_garbage;
1399 } 1399 }
1400
1400 if ((n = ntohl(*p++)) != RPC_MSG_ACCEPTED) { 1401 if ((n = ntohl(*p++)) != RPC_MSG_ACCEPTED) {
1401 if (--len < 0) 1402 if (--len < 0)
1402 goto out_overflow; 1403 goto out_overflow;