]> 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)
commit6dce139a31aa1b6877040fc5a72a13fdcac52275
tree99e6f929f8089f69cf43540f01dda1800cfef8ac
parent32ac6aef38657b07a4a4e7b9cdc110f16b4021fa
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