Unverified Commit 75876306 authored by openeuler-ci-bot's avatar openeuler-ci-bot Committed by Gitee
Browse files

!12643 Bluetooth: Fix crash when replugging CSR fake controllers

parents 9383c726 0c114216
Loading
Loading
Loading
Loading
+2 −1
Original line number Diff line number Diff line
@@ -3800,7 +3800,8 @@ int hci_register_dev(struct hci_dev *hdev)
	hci_sock_dev_event(hdev, HCI_DEV_REG);
	hci_dev_hold(hdev);

	if (!test_bit(HCI_QUIRK_NO_SUSPEND_NOTIFIER, &hdev->quirks)) {
	if (!hdev->suspend_notifier.notifier_call &&
	    !test_bit(HCI_QUIRK_NO_SUSPEND_NOTIFIER, &hdev->quirks)) {
		hdev->suspend_notifier.notifier_call = hci_suspend_notifier;
		error = register_pm_notifier(&hdev->suspend_notifier);
		if (error)