]> git.ipfire.org Git - thirdparty/kernel/linux.git/commit
Bluetooth: Fix usage of __hci_cmd_sync_status
authorLuiz Augusto von Dentz <luiz.von.dentz@intel.com>
Mon, 1 Jul 2024 16:07:46 +0000 (12:07 -0400)
committerLuiz Augusto von Dentz <luiz.von.dentz@intel.com>
Mon, 15 Jul 2024 14:11:23 +0000 (10:11 -0400)
commit87be7b189b2c50d4b51512f59e4e97db4eedee8a
treea5fea3c08d06b33d070943693db350f7831d62ab
parent473a89b4ed7fd52a419340f7c540d5c8fc96fc75
Bluetooth: Fix usage of __hci_cmd_sync_status

__hci_cmd_sync_status shall only be used if hci_req_sync_lock is _not_
required which is not the case of hci_dev_cmd so it needs to use
hci_cmd_sync_status which uses hci_req_sync_lock internally.

Fixes: f1a8f402f13f ("Bluetooth: L2CAP: Fix deadlock")
Reported-by: Pauli Virtanen <pav@iki.fi>
Signed-off-by: Luiz Augusto von Dentz <luiz.von.dentz@intel.com>
net/bluetooth/hci_core.c