Bluetooth: Add BUILD_BUG_ON check for SKB control buffer size
[cascardo/linux.git] / net / bluetooth / af_bluetooth.c
index 4dca029..339c74a 100644 (file)
@@ -709,8 +709,11 @@ EXPORT_SYMBOL_GPL(bt_debugfs);
 
 static int __init bt_init(void)
 {
+       struct sk_buff *skb;
        int err;
 
+       BUILD_BUG_ON(sizeof(struct bt_skb_cb) > sizeof(skb->cb));
+
        BT_INFO("Core ver %s", VERSION);
 
        bt_debugfs = debugfs_create_dir("bluetooth", NULL);