]> 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)
commit42418db7a8aafbd3e0875bb3d27abe109f87fc75
tree12e013ee372bb851f8536eff36c9781749f7de30
parent20717aacc247526edd7cd4347f40ab825feb8454
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