From: Herbert Xu Date: Mon, 15 Oct 2007 08:46:08 +0000 (-0700) Subject: [NET]: Fix csum_start update in pskb_expand_head X-Git-Tag: v2.6.24-rc1~1277^2~25 X-Git-Url: https://git.karo-electronics.de/?a=commitdiff_plain;h=172a863f2bfbacf4b6bfc06db219b946a058ce1a;p=karo-tx-linux.git [NET]: Fix csum_start update in pskb_expand_head I got confused by the dual nature of the off variable in the function pskb_expand_head. The csum_start offset should use nhead instead of off which can change depending on whether we are using offsets or pointers. Signed-off-by: Herbert Xu Signed-off-by: David S. Miller --- diff --git a/net/core/skbuff.c b/net/core/skbuff.c index c3aa68ceed62..70d9b5da96ae 100644 --- a/net/core/skbuff.c +++ b/net/core/skbuff.c @@ -682,7 +682,7 @@ int pskb_expand_head(struct sk_buff *skb, int nhead, int ntail, skb->transport_header += off; skb->network_header += off; skb->mac_header += off; - skb->csum_start += off; + skb->csum_start += nhead; skb->cloned = 0; skb->hdr_len = 0; skb->nohdr = 0;