Patch "Bluetooth: Return NOTIFY_DONE for hci_suspend_notifier" has been added to the 5.8-stable tree

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



This is a note to let you know that I've just added the patch titled

    Bluetooth: Return NOTIFY_DONE for hci_suspend_notifier

to the 5.8-stable tree which can be found at:
    http://www.kernel.org/git/?p=linux/kernel/git/stable/stable-queue.git;a=summary

The filename of the patch is:
     bluetooth-return-notify_done-for-hci_suspend_notifie.patch
and it can be found in the queue-5.8 subdirectory.

If you, or anyone else, feels it should not be added to the stable tree,
please let <stable@xxxxxxxxxxxxxxx> know about it.



commit f0d03621139a86dcb07203ce4f39931056dd0e71
Author: Max Chou <max.chou@xxxxxxxxxxx>
Date:   Thu Jul 23 18:47:42 2020 +0800

    Bluetooth: Return NOTIFY_DONE for hci_suspend_notifier
    
    [ 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@xxxxxxxxxxx>
    Signed-off-by: Marcel Holtmann <marcel@xxxxxxxxxxxx>
    Signed-off-by: Sasha Levin <sashal@xxxxxxxxxx>

diff --git a/net/bluetooth/hci_core.c b/net/bluetooth/hci_core.c
index 41fba93d857a6..fc28dc201b936 100644
--- a/net/bluetooth/hci_core.c
+++ b/net/bluetooth/hci_core.c
@@ -3370,7 +3370,7 @@ static int hci_suspend_notifier(struct notifier_block *nb, unsigned long action,
 		bt_dev_err(hdev, "Suspend notifier action (%lu) failed: %d",
 			   action, ret);
 
-	return NOTIFY_STOP;
+	return NOTIFY_DONE;
 }
 
 /* Alloc HCI device */



[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Index of Archives]     [Linux USB Devel]     [Linux Audio Users]     [Yosemite News]     [Linux Kernel]     [Linux SCSI]

  Powered by Linux