[NET]: Warn about GSO/checksum abuse
[linux-2.6.git] / net / core / dev.c
index 18c51b40f6657170d8d9ec8e574278aa0a733706..d82d00f5451f158d9c28aea69e3fe31a6f4b4637 100644 (file)
@@ -1202,7 +1202,7 @@ struct sk_buff *skb_gso_segment(struct sk_buff *skb, int features)
        skb->mac_len = skb->network_header - skb->mac_header;
        __skb_pull(skb, skb->mac_len);
 
-       if (unlikely(skb->ip_summed != CHECKSUM_PARTIAL)) {
+       if (WARN_ON(skb->ip_summed != CHECKSUM_PARTIAL)) {
                if (skb_header_cloned(skb) &&
                    (err = pskb_expand_head(skb, 0, 0, GFP_ATOMIC)))
                        return ERR_PTR(err);