mirror of
https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git
synced 2024-10-02 15:18:19 +00:00
[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>
This commit is contained in:
parent
a9d41192b9
commit
172a863f2b
1 changed files with 1 additions and 1 deletions
|
@ -682,7 +682,7 @@ int pskb_expand_head(struct sk_buff *skb, int nhead, int ntail,
|
||||||
skb->transport_header += off;
|
skb->transport_header += off;
|
||||||
skb->network_header += off;
|
skb->network_header += off;
|
||||||
skb->mac_header += off;
|
skb->mac_header += off;
|
||||||
skb->csum_start += off;
|
skb->csum_start += nhead;
|
||||||
skb->cloned = 0;
|
skb->cloned = 0;
|
||||||
skb->hdr_len = 0;
|
skb->hdr_len = 0;
|
||||||
skb->nohdr = 0;
|
skb->nohdr = 0;
|
||||||
|
|
Loading…
Reference in a new issue