Commit da77c1d3 authored by Luiz Augusto von Dentz's avatar Luiz Augusto von Dentz Committed by Sasha Levin
Browse files

Bluetooth: hci_sync: Fix overwriting request callback



[ Upstream commit 2615fd9a ]

In a few cases the stack may generate commands as responses to events
which would happen to overwrite the sent_cmd, so this attempts to store
the request in req_skb so even if sent_cmd is replaced with a new
command the pending request will remain in stored in req_skb.

Fixes: 6a98e383 ("Bluetooth: Add helper for serialized HCI command execution")
Signed-off-by: default avatarLuiz Augusto von Dentz <luiz.von.dentz@intel.com>
Signed-off-by: default avatarSasha Levin <sashal@kernel.org>
parent 1b6cfa4c
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please to comment