diff --git a/net/bluetooth/hci_core.c b/net/bluetooth/hci_core.c index 555058270f11293914968eacc78d9acb712d7c7a..7a2f9559e99a0ae61c8d1d98fd95553e79224e84 100644 --- a/net/bluetooth/hci_core.c +++ b/net/bluetooth/hci_core.c @@ -3529,7 +3529,8 @@ static int hci_suspend_notifier(struct notifier_block *nb, unsigned long action, } /* Suspend notifier should only act on events when powered. */ - if (!hdev_is_powered(hdev)) + if (!hdev_is_powered(hdev) || + hci_dev_test_flag(hdev, HCI_UNREGISTER)) goto done; if (action == PM_SUSPEND_PREPARE) {