mirror of
https://github.com/zephyrproject-rtos/zephyr
synced 2025-08-19 10:05:22 +00:00
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> |
||
---|---|---|
.known-issues | ||
arch | ||
boards | ||
doc | ||
drivers | ||
ext | ||
include | ||
kernel | ||
lib | ||
misc | ||
samples | ||
scripts | ||
subsys | ||
tests | ||
.checkpatch.conf | ||
.gitattributes | ||
.gitignore | ||
.gitreview | ||
.mailmap | ||
defaults.tc | ||
Kbuild | ||
Kconfig | ||
Kconfig.zephyr | ||
LICENSE | ||
LICENSING.rst | ||
MAINTAINERS | ||
Makefile | ||
Makefile.inc | ||
release-notes.rst | ||
zephyr-env.sh |