diff options
Diffstat (limited to 'net/ipv6/exthdrs.c')
-rw-r--r-- | net/ipv6/exthdrs.c | 9 |
1 files changed, 4 insertions, 5 deletions
diff --git a/net/ipv6/exthdrs.c b/net/ipv6/exthdrs.c index 5be6da2584ee..3b9fa900a4bf 100644 --- a/net/ipv6/exthdrs.c +++ b/net/ipv6/exthdrs.c | |||
@@ -459,11 +459,10 @@ static int ipv6_hop_jumbo(struct sk_buff *skb, int optoff) | |||
459 | IP6_INC_STATS_BH(IPSTATS_MIB_INTRUNCATEDPKTS); | 459 | IP6_INC_STATS_BH(IPSTATS_MIB_INTRUNCATEDPKTS); |
460 | goto drop; | 460 | goto drop; |
461 | } | 461 | } |
462 | if (pkt_len + sizeof(struct ipv6hdr) < skb->len) { | 462 | |
463 | __pskb_trim(skb, pkt_len + sizeof(struct ipv6hdr)); | 463 | if (pskb_trim_rcsum(skb, pkt_len + sizeof(struct ipv6hdr))) |
464 | if (skb->ip_summed == CHECKSUM_HW) | 464 | goto drop; |
465 | skb->ip_summed = CHECKSUM_NONE; | 465 | |
466 | } | ||
467 | return 1; | 466 | return 1; |
468 | 467 | ||
469 | drop: | 468 | drop: |