Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 6a72ae2e authored by J. Bruce Fields's avatar J. Bruce Fields
Browse files

svcrpc: fix off-by-4 error in "incomplete TCP record" dprintk



The full reclen doesn't include the fragment header, but sk_tcplen does.
Fix this to make it an apples-to-apples comparison.

Signed-off-by: default avatarJ. Bruce Fields <bfields@redhat.com>
parent ad46ccf0
Loading
Loading
Loading
Loading
+2 −1
Original line number Diff line number Diff line
@@ -1073,7 +1073,8 @@ static int svc_tcp_recvfrom(struct svc_rqst *rqstp)
		if (len < 0 && len != -EAGAIN)
			goto err_delete;
		dprintk("svc: incomplete TCP record (%d of %d)\n",
			svsk->sk_tcplen, svc_sock_reclen(svsk));
			svsk->sk_tcplen - sizeof(rpc_fraghdr),
			svc_sock_reclen(svsk));
		goto err_noclose;
	}