]> Pileus Git - ~andy/linux/blobdiff - net/core/skbuff.c
net: Account for all vlan headers in skb_mac_gso_segment
[~andy/linux] / net / core / skbuff.c
index 97e5a2c3d947c893f1de56f492439f4aa181d542..90b96a11b974d2697defcc9ccf4b14b65d704c49 100644 (file)
@@ -2879,8 +2879,9 @@ struct sk_buff *skb_segment(struct sk_buff *head_skb,
        int err = -ENOMEM;
        int i = 0;
        int pos;
+       int dummy;
 
-       proto = skb_network_protocol(head_skb);
+       proto = skb_network_protocol(head_skb, &dummy);
        if (unlikely(!proto))
                return ERR_PTR(-EINVAL);