Skip to content
Commit 379eb7a0 authored by Fredrik Danebjer's avatar Fredrik Danebjer Committed by Benjamin Cabé
Browse files

bluetooth: host: Fix premature semaphore giving



There was a semaphore in hci_core which was given to early when
receiving the BT_HCI_EVT_NUM_COMPLETED_PACKETS message from the
controller. This would sometimes cause an assert to happen in
function hci_num_completed_packets, where there would arise a
mismatch in the bookkept count, and actually stored nodes. More
concretely, due to premature semaphore giveing, the tx_pending node
would be have been removed in another context before it could be
fetched and moved to complete list in this function.

Signed-off-by: default avatarFredrik Danebjer <frdn@demant.com>
parent 94a8c524
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please to comment