]> git.baikalelectronics.ru Git - kernel.git/commit
Bluetooth: L2CAP: Fix checked range when allocating new CID
authorJohan Hedberg <johan.hedberg@intel.com>
Mon, 2 Nov 2015 12:39:16 +0000 (14:39 +0200)
committerMarcel Holtmann <marcel@holtmann.org>
Thu, 5 Nov 2015 03:04:07 +0000 (04:04 +0100)
commit8e21e3318e735638c0d32e57d2f078ea737a1fea
tree99e6f929f8089f69cf43540f01dda1800cfef8ac
parentb0773e8bafb27d2012292635e178da8ceb67659a
Bluetooth: L2CAP: Fix checked range when allocating new CID

The 'dyn_end' value is also a valid CID so it should be included in
the range of values checked.

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