Skip to content
Commit ae935a7a authored by Krzysztof Kopyściński's avatar Krzysztof Kopyściński Committed by Carles Cufí
Browse files

Bluetooth/tester: fix coverity issue in l2cap



i is of uint type, so it'll never be negative. Thus, while loop
condition i >= 0 will always be true.
This patch also fixes issue with marking unused l2cap channels
as free by freeing only these that were marked as in_use by
get_free_channel(), and not all of them.

Signed-off-by: default avatarKrzysztof Kopyściński <krzysztof.kopyscinski@codecoup.pl>
parent bb39e9fc
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please to comment