]> xenbits.xensource.com Git - people/aperard/linux.git/commit
Bluetooth: hci_sync: Fix overwriting request callback
authorLuiz Augusto von Dentz <luiz.von.dentz@intel.com>
Fri, 16 Feb 2024 21:20:11 +0000 (16:20 -0500)
committerLuiz Augusto von Dentz <luiz.von.dentz@intel.com>
Wed, 6 Mar 2024 22:26:20 +0000 (17:26 -0500)
commit2615fd9a7c2507eb3be3fbe49dcec88a2f56454a
tree3911435648f4de8605afa45daa6ea7edfe03d2df
parent22cbf4f84c00da64196eb15034feee868e63eef0
Bluetooth: hci_sync: Fix overwriting request callback

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: 6a98e3836fa2 ("Bluetooth: Add helper for serialized HCI command execution")
Signed-off-by: Luiz Augusto von Dentz <luiz.von.dentz@intel.com>
include/net/bluetooth/hci_core.h
net/bluetooth/hci_conn.c
net/bluetooth/hci_core.c
net/bluetooth/hci_event.c
net/bluetooth/hci_sync.c