Skip to content
Commit 2edddbdd authored by Ahmed Ahmed's avatar Ahmed Ahmed Committed by Benjamin Cabé
Browse files

bluetooth: host: add asserts to foreach in get_conn_ready



Assert that the previous connection in the list and the tmp element
in the loop are different to the current connection.
Otherwise, if the same connection was somehow added twice it
could result in an infinite loop.

Signed-off-by: default avatarAhmed Ahmed <ahmed.ahmed@dewinelabs.com>
parent 09987162
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please to comment