Bluetooth: Add BUILD_BUG_ON for size of struct sockaddr_hci
authorMarcel Holtmann <marcel@holtmann.org>
Sun, 11 Jan 2015 23:18:17 +0000 (15:18 -0800)
committerJohan Hedberg <johan.hedberg@intel.com>
Mon, 12 Jan 2015 09:24:16 +0000 (11:24 +0200)
commitb0a8e282b54d11859a13bebd4c056dcfb577f8b7
tree0867f184ddce711c36886e386f0e6c1edf4d25f5
parent1904a853fae40ee61bed7c231fc5bd2158984441
Bluetooth: Add BUILD_BUG_ON for size of struct sockaddr_hci

This adds an extra check for ensuring that the size of sockaddr_hci
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/hci_sock.c