|
@@ -55,13 +55,13 @@ static struct sk_buff *gre_gso_segment(struct sk_buff *skb,
|
|
|
if (csum)
|
|
if (csum)
|
|
|
skb->encap_hdr_csum = 1;
|
|
skb->encap_hdr_csum = 1;
|
|
|
|
|
|
|
|
- if (unlikely(!pskb_may_pull(skb, ghl)))
|
|
|
|
|
- goto out;
|
|
|
|
|
-
|
|
|
|
|
/* setup inner skb. */
|
|
/* setup inner skb. */
|
|
|
skb->protocol = greh->protocol;
|
|
skb->protocol = greh->protocol;
|
|
|
skb->encapsulation = 0;
|
|
skb->encapsulation = 0;
|
|
|
|
|
|
|
|
|
|
+ if (unlikely(!pskb_may_pull(skb, ghl)))
|
|
|
|
|
+ goto out;
|
|
|
|
|
+
|
|
|
__skb_pull(skb, ghl);
|
|
__skb_pull(skb, ghl);
|
|
|
skb_reset_mac_header(skb);
|
|
skb_reset_mac_header(skb);
|
|
|
skb_set_network_header(skb, skb_inner_network_offset(skb));
|
|
skb_set_network_header(skb, skb_inner_network_offset(skb));
|