diff options
Diffstat (limited to 'net/ipv4/udp.c')
-rw-r--r-- | net/ipv4/udp.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/net/ipv4/udp.c b/net/ipv4/udp.c index 13739cd8206f..13875e8419a7 100644 --- a/net/ipv4/udp.c +++ b/net/ipv4/udp.c | |||
@@ -435,7 +435,7 @@ static void udp4_hwcsum_outgoing(struct sock *sk, struct sk_buff *skb, | |||
435 | * fragments on the socket so that all csums of sk_buffs | 435 | * fragments on the socket so that all csums of sk_buffs |
436 | * should be together | 436 | * should be together |
437 | */ | 437 | */ |
438 | offset = skb->h.raw - skb->data; | 438 | offset = skb_transport_offset(skb); |
439 | skb->csum = skb_checksum(skb, offset, skb->len - offset, 0); | 439 | skb->csum = skb_checksum(skb, offset, skb->len - offset, 0); |
440 | 440 | ||
441 | skb->ip_summed = CHECKSUM_NONE; | 441 | skb->ip_summed = CHECKSUM_NONE; |