]> git.ipfire.org Git - thirdparty/kernel/stable.git/commit
Bluetooth: hci_conn: Consolidate code for aborting connections
authorLuiz Augusto von Dentz <luiz.von.dentz@intel.com>
Tue, 27 Jun 2023 00:25:06 +0000 (17:25 -0700)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Wed, 13 Sep 2023 07:48:07 +0000 (09:48 +0200)
commite4511a67fcdba9729d1c7cfc6d2e645c765ce801
tree24826c73b858a6cb6759867945cc1e0708226887
parent0c57f9ad2c3ed43abb764b0247d610ff7fdb7a00
Bluetooth: hci_conn: Consolidate code for aborting connections

[ Upstream commit a13f316e90fdb1fb6df6582e845aa9b3270f3581 ]

This consolidates code for aborting connections using
hci_cmd_sync_queue so it is synchronized with other threads, but
because of the fact that some commands may block the cmd_sync_queue
while waiting specific events this attempt to cancel those requests by
using hci_cmd_sync_cancel.

Signed-off-by: Luiz Augusto von Dentz <luiz.von.dentz@intel.com>
Stable-dep-of: 94d9ba9f9888 ("Bluetooth: hci_sync: Fix UAF in hci_disconnect_all_sync")
Signed-off-by: Sasha Levin <sashal@kernel.org>
include/net/bluetooth/hci_core.h
net/bluetooth/hci_conn.c
net/bluetooth/hci_sync.c
net/bluetooth/mgmt.c