Merge tag 'renesas-boards-cleanups2-for-v3.19' of git://git.kernel.org/pub/scm/linux...
[firefly-linux-kernel-4.4.55.git] / net / ipv6 / ip6_offload.c
index 9034f76ae0138c4a201708ea15e28ba0b846247b..a071563a7e6e9c1f6d0fa9d8490c1d35ce89b3f7 100644 (file)
@@ -46,6 +46,7 @@ static int ipv6_gso_pull_exthdrs(struct sk_buff *skb, int proto)
                if (unlikely(!pskb_may_pull(skb, len)))
                        break;
 
+               opth = (void *)skb->data;
                proto = opth->nexthdr;
                __skb_pull(skb, len);
        }
@@ -89,7 +90,7 @@ static struct sk_buff *ipv6_gso_segment(struct sk_buff *skb,
 
        encap = SKB_GSO_CB(skb)->encap_level > 0;
        if (encap)
-               features = skb->dev->hw_enc_features & netif_skb_features(skb);
+               features &= skb->dev->hw_enc_features;
        SKB_GSO_CB(skb)->encap_level += sizeof(*ipv6h);
 
        ipv6h = ipv6_hdr(skb);