aboutsummaryrefslogtreecommitdiffstats
path: root/net/sunrpc/socklib.c
diff options
context:
space:
mode:
Diffstat (limited to 'net/sunrpc/socklib.c')
-rw-r--r--net/sunrpc/socklib.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/net/sunrpc/socklib.c b/net/sunrpc/socklib.c
index de70c78025d7..f217c348b341 100644
--- a/net/sunrpc/socklib.c
+++ b/net/sunrpc/socklib.c
@@ -155,7 +155,7 @@ int csum_partial_copy_to_xdr(struct xdr_buf *xdr, struct sk_buff *skb)
155 struct xdr_skb_reader desc; 155 struct xdr_skb_reader desc;
156 156
157 desc.skb = skb; 157 desc.skb = skb;
158 desc.offset = sizeof(struct udphdr); 158 desc.offset = 0;
159 desc.count = skb->len - desc.offset; 159 desc.count = skb->len - desc.offset;
160 160
161 if (skb_csum_unnecessary(skb)) 161 if (skb_csum_unnecessary(skb))