diff options
Diffstat (limited to 'net/ipv6/raw.c')
-rw-r--r-- | net/ipv6/raw.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/net/ipv6/raw.c b/net/ipv6/raw.c index 0e2b56ce0a56..bb049f1c2679 100644 --- a/net/ipv6/raw.c +++ b/net/ipv6/raw.c | |||
@@ -513,7 +513,7 @@ static int rawv6_push_pending_frames(struct sock *sk, struct flowi *fl, | |||
513 | if (csum_skb) | 513 | if (csum_skb) |
514 | continue; | 514 | continue; |
515 | 515 | ||
516 | len = skb->len - (skb->h.raw - skb->data); | 516 | len = skb->len - skb_transport_offset(skb); |
517 | if (offset >= len) { | 517 | if (offset >= len) { |
518 | offset -= len; | 518 | offset -= len; |
519 | continue; | 519 | continue; |
@@ -525,7 +525,7 @@ static int rawv6_push_pending_frames(struct sock *sk, struct flowi *fl, | |||
525 | skb = csum_skb; | 525 | skb = csum_skb; |
526 | } | 526 | } |
527 | 527 | ||
528 | offset += skb->h.raw - skb->data; | 528 | offset += skb_transport_offset(skb); |
529 | if (skb_copy_bits(skb, offset, &csum, 2)) | 529 | if (skb_copy_bits(skb, offset, &csum, 2)) |
530 | BUG(); | 530 | BUG(); |
531 | 531 | ||