aboutsummaryrefslogtreecommitdiffstats
path: root/net/sunrpc/svcsock.c
diff options
context:
space:
mode:
Diffstat (limited to 'net/sunrpc/svcsock.c')
-rw-r--r--net/sunrpc/svcsock.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/net/sunrpc/svcsock.c b/net/sunrpc/svcsock.c
index df74919c81c0..305374d4fb98 100644
--- a/net/sunrpc/svcsock.c
+++ b/net/sunrpc/svcsock.c
@@ -1095,7 +1095,7 @@ static int svc_tcp_recvfrom(struct svc_rqst *rqstp)
1095 goto err_noclose; 1095 goto err_noclose;
1096 } 1096 }
1097 1097
1098 if (svc_sock_reclen(svsk) < 8) { 1098 if (svsk->sk_datalen < 8) {
1099 svsk->sk_datalen = 0; 1099 svsk->sk_datalen = 0;
1100 goto err_delete; /* client is nuts. */ 1100 goto err_delete; /* client is nuts. */
1101 } 1101 }