Bluetooth: hci_sync: add lock to protect HCI_UNREGISTER
[platform/kernel/linux-starfive.git] / include / net / bluetooth / hci_core.h
index 8baf346..fe38938 100644 (file)
@@ -515,6 +515,7 @@ struct hci_dev {
        struct work_struct      cmd_sync_work;
        struct list_head        cmd_sync_work_list;
        struct mutex            cmd_sync_work_lock;
+       struct mutex            unregister_lock;
        struct work_struct      cmd_sync_cancel_work;
        struct work_struct      reenable_adv_work;