]> git.ipfire.org Git - thirdparty/kernel/stable.git/commitdiff
Bluetooth: Return NOTIFY_DONE for hci_suspend_notifier
authorMax Chou <max.chou@realtek.com>
Thu, 23 Jul 2020 10:47:42 +0000 (18:47 +0800)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Wed, 9 Sep 2020 17:14:26 +0000 (19:14 +0200)
[ Upstream commit 24b065727ceba53cc5bec0e725672417154df24f ]

The original return is NOTIFY_STOP, but notifier_call_chain would stop
the future call for register_pm_notifier even registered on other Kernel
modules with the same priority which value is zero.

Signed-off-by: Max Chou <max.chou@realtek.com>
Signed-off-by: Marcel Holtmann <marcel@holtmann.org>
Signed-off-by: Sasha Levin <sashal@kernel.org>
net/bluetooth/hci_core.c

index 41fba93d857a63884f3939e10e871b8d4f966f3b..fc28dc201b9365878938bebaf44d174222dd2a3b 100644 (file)
@@ -3370,7 +3370,7 @@ done:
                bt_dev_err(hdev, "Suspend notifier action (%lu) failed: %d",
                           action, ret);
 
-       return NOTIFY_STOP;
+       return NOTIFY_DONE;
 }
 
 /* Alloc HCI device */