commit | fa8a27fc03559ae00ddaaaa839d19dd2c1cdc865 | [log] [tgz] |
---|---|---|
author | Szymon Janc <ext.szymon.janc@tieto.com> | Fri Dec 23 12:41:07 2016 +0100 |
committer | Johan Hedberg <johan.hedberg@intel.com> | Sat Dec 24 08:42:15 2016 +0200 |
tree | 876499f6f64e744663c240474b858ba8924ceb4d | |
parent | fe7d3392cd98a36c3b19ea2c8f6629243e39a40f [diff] |
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>