diff options
author | Herbert Xu <herbert@gondor.apana.org.au> | 2007-10-15 04:46:08 -0400 |
---|---|---|
committer | David S. Miller <davem@sunset.davemloft.net> | 2007-10-15 15:26:33 -0400 |
commit | 172a863f2bfbacf4b6bfc06db219b946a058ce1a (patch) | |
tree | 6718e73fac415dbaa96993366d3a1f5d5dd84707 /net | |
parent | a9d41192b96559aa3658bc7886468a46da911c76 (diff) |
[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 <herbert@gondor.apana.org.au>
Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'net')
-rw-r--r-- | net/core/skbuff.c | 2 |
1 files changed, 1 insertions, 1 deletions
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, | |||
682 | skb->transport_header += off; | 682 | skb->transport_header += off; |
683 | skb->network_header += off; | 683 | skb->network_header += off; |
684 | skb->mac_header += off; | 684 | skb->mac_header += off; |
685 | skb->csum_start += off; | 685 | skb->csum_start += nhead; |
686 | skb->cloned = 0; | 686 | skb->cloned = 0; |
687 | skb->hdr_len = 0; | 687 | skb->hdr_len = 0; |
688 | skb->nohdr = 0; | 688 | skb->nohdr = 0; |