Skip to content
Commit a6e5755d authored by Johan Hedberg's avatar Johan Hedberg Committed by Carles Cufí
Browse files

Bluetooth: Fix clearing sent_cmd pointer when allocating event buffer



We should clear the bt_dev.sent_cmd pointer after using it to allocate a
new HCI event buffer in the bt_buf_get_cmd_complete() function.
Otherwise, there is a risk of reusing the same stored net_buf for
multiple consecutive HCI events in case the controller sents duplicate
or invalid event packets.

Signed-off-by: default avatarJohan Hedberg <johan.hedberg@intel.com>
parent 3f78779e
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please to comment