Commit d890debd authored by Zhengping Jiang's avatar Zhengping Jiang Committed by Carlos Llamas
Browse files

UPSTREAM: Bluetooth: hci_sync: add lock to protect HCI_UNREGISTER



[ Upstream commit 1857c199 ]

When the HCI_UNREGISTER flag is set, no jobs should be scheduled. Fix
potential race when HCI_UNREGISTER is set after the flag is tested in
hci_cmd_sync_queue.

Fixes: 0b94f265 ("Bluetooth: hci_sync: Fix queuing commands when HCI_UNREGISTER is set")
Change-Id: I565a2ad87dc2ce4fd62ee0d09a5d28342fec8ad3
Signed-off-by: default avatarZhengping Jiang <jiangzp@google.com>
Signed-off-by: default avatarLuiz Augusto von Dentz <luiz.von.dentz@intel.com>
Signed-off-by: default avatarSasha Levin <sashal@kernel.org>
(cherry picked from commit 17aac120)
Signed-off-by: default avatarGreg Kroah-Hartman <gregkh@google.com>
parent 855c5479
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please to comment