Bluetooth: Add BUILD_BUG_ON for size of struct sockaddr_l2
authorMarcel Holtmann <marcel@holtmann.org>
Sun, 11 Jan 2015 23:18:19 +0000 (15:18 -0800)
committerJohan Hedberg <johan.hedberg@intel.com>
Mon, 12 Jan 2015 09:24:19 +0000 (11:24 +0200)
commitdd6255588a56e755380b66275ff4f35a8243b64a
tree12e013ee372bb851f8536eff36c9781749f7de30
parentb0a8e282b54d11859a13bebd4c056dcfb577f8b7
Bluetooth: Add BUILD_BUG_ON for size of struct sockaddr_l2

This adds an extra check for ensuring that the size of sockaddr_l2
does not grow larger than sockaddr.

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