]> git.baikalelectronics.ru Git - kernel.git/commit
Bluetooth: hci_sync: Fix queuing commands when HCI_UNREGISTER is set
authorLuiz Augusto von Dentz <luiz.von.dentz@intel.com>
Thu, 27 Jan 2022 01:21:00 +0000 (17:21 -0800)
committerMarcel Holtmann <marcel@holtmann.org>
Thu, 27 Jan 2022 16:40:18 +0000 (17:40 +0100)
commitfe9cb68c1cc525a5631db5f031e33381b5cf121b
tree4ad85c6a18e6e8547a20795b883a48e340a49236
parent65367b12e84fccc15bb26d108ca2ecdd9a18b0e2
Bluetooth: hci_sync: Fix queuing commands when HCI_UNREGISTER is set

hci_cmd_sync_queue shall return an error if HCI_UNREGISTER flag has
been set as that means hci_unregister_dev has been called so it will
likely cause a uaf after the timeout as the hdev will be freed.

Signed-off-by: Luiz Augusto von Dentz <luiz.von.dentz@intel.com>
Signed-off-by: Marcel Holtmann <marcel@holtmann.org>
net/bluetooth/hci_sync.c