]> git.baikalelectronics.ru Git - kernel.git/commit
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)
commit327902d780b58271942afba70549597c29ba6b64
tree12e013ee372bb851f8536eff36c9781749f7de30
parent2035b47942fa07a194fd3dc1a9e77d955d4816ee
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