projects
/
platform
/
adaptation
/
renesas_rcar
/
renesas_kernel.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
ad46ccf
)
svcrpc: fix off-by-4 error in "incomplete TCP record" dprintk
author
J. Bruce Fields
<bfields@redhat.com>
Mon, 3 Dec 2012 21:35:35 +0000
(16:35 -0500)
committer
J. Bruce Fields
<bfields@redhat.com>
Tue, 4 Dec 2012 12:49:06 +0000
(07:49 -0500)
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: J. Bruce Fields <bfields@redhat.com>
net/sunrpc/svcsock.c
patch
|
blob
|
history
diff --git
a/net/sunrpc/svcsock.c
b/net/sunrpc/svcsock.c
index
1557179
..
1db42b1
100644
(file)
--- a/
net/sunrpc/svcsock.c
+++ b/
net/sunrpc/svcsock.c
@@
-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;
}