Bluetooth: L2CAP: Add missing checks for invalid LE DCID
authorJohan Hedberg <johan.hedberg@intel.com>
Mon, 2 Nov 2015 12:39:17 +0000 (14:39 +0200)
committerMarcel Holtmann <marcel@holtmann.org>
Thu, 5 Nov 2015 03:04:15 +0000 (04:04 +0100)
commit40624183c202278e7e0edd01d1273efc87ddd1f2
tree251b553ddf069d4494ed3840c6f8306ad3143533
parentab0c127fbb21c19adb34b78ba26b84748d0cd4de
Bluetooth: L2CAP: Add missing checks for invalid LE DCID

When receiving a connect response we should make sure that the DCID is
within the valid range and that we don't already have another channel
allocated for the same DCID.

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