]> git.baikalelectronics.ru Git - kernel.git/commit
Bluetooth: Add BUILD_BUG_ON check for SKB control buffer size
authorMarcel Holtmann <marcel@holtmann.org>
Sun, 14 Sep 2014 20:50:46 +0000 (22:50 +0200)
committerJohan Hedberg <johan.hedberg@intel.com>
Mon, 15 Sep 2014 04:15:41 +0000 (07:15 +0300)
commita2a383cd079d7da44f361155f5506f1e60eaa1b5
tree83ec41e619f20b9f87c7e30bd174249bd0f1decc
parent29322dfe98d5026825598dcf240edd7f298b60bb
Bluetooth: Add BUILD_BUG_ON check for SKB control buffer size

The struct bt_skb_cb size needs to stay within the limits of skb->cb
at all times and to ensure that add a BUILD_BUG_ON to check for it at
compile time.

Signed-off-by: Marcel Holtmann <marcel@holtmann.org>
Signed-off-by: Johan Hedberg <johan.hedberg@intel.com>
net/bluetooth/af_bluetooth.c