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)
commitab0c127fbb21c19adb34b78ba26b84748d0cd4de
tree99e6f929f8089f69cf43540f01dda1800cfef8ac
parent8a7889cc6e2dbbace114130f4efd9b77452069cd
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