zephyr/subsys/bluetooth
Szymon Janc fa8a27fc03 Bluetooth: L2CAP: Fix possible endless loop
cid is uint16_t and L2CAP_BR_CID_DYN_END is 0xffff so doing
"cid < L2CAP_BR_CID_DYN_END" comparisong is always true resulting
in for loop not being terminated as expected. Check against cid
overflow instead. Code comment is also added for clarity.

Change-Id: I15d6d838ed8b731824e602d089d765614c96c6c1
Signed-off-by: Szymon Janc <ext.szymon.janc@tieto.com>
2016-12-24 08:42:15 +02:00
..
controller Bluetooth: Add timeout to event & ACL buffer allocation functions 2016-12-24 08:42:15 +02:00
host Bluetooth: L2CAP: Fix possible endless loop 2016-12-24 08:42:15 +02:00
Kconfig Bluetooth: Kconfig: Remove deprecated dependency on NANO_TIMEOUT 2016-11-18 07:47:50 +02:00
Makefile Bluetooth: Kconfig: Restructure for a more logical hierarchy 2016-11-11 07:59:15 +02:00