tcp: switch back to proper tcp_skb_cb size check in tcp_init()
[cascardo/linux.git] / net / ipv4 / tcp.c
index e79ed17..de02fb4 100644 (file)
@@ -3261,11 +3261,12 @@ static void __init tcp_init_mem(void)
 
 void __init tcp_init(void)
 {
-       unsigned long limit;
        int max_rshare, max_wshare, cnt;
+       unsigned long limit;
        unsigned int i;
 
-       sock_skb_cb_check_size(sizeof(struct tcp_skb_cb));
+       BUILD_BUG_ON(sizeof(struct tcp_skb_cb) >
+                    FIELD_SIZEOF(struct sk_buff, cb));
 
        percpu_counter_init(&tcp_sockets_allocated, 0, GFP_KERNEL);
        percpu_counter_init(&tcp_orphan_count, 0, GFP_KERNEL);