]> git.baikalelectronics.ru Git - kernel.git/commit
Bluetooth: Always set event mask on suspend
authorAbhishek Pandit-Subedi <abhishekpandit@chromium.org>
Mon, 25 Jul 2022 22:34:21 +0000 (15:34 -0700)
committerLuiz Augusto von Dentz <luiz.von.dentz@intel.com>
Tue, 26 Jul 2022 20:35:13 +0000 (13:35 -0700)
commit7d8642f2a38af8671e3c9d48f963db865a469336
tree38ed3eb7fa840652dd1defceddd99e86e0ae4f69
parent4af9e082155ae6d6d1e815082fae8a30be3d2a59
Bluetooth: Always set event mask on suspend

When suspending, always set the event mask once disconnects are
successful. Otherwise, if wakeup is disallowed, the event mask is not
set before suspend continues and can result in an early wakeup.

Fixes: b7ac669c9a6b ("Bluetooth: hci_sync: Rework hci_suspend_notifier")
Cc: stable@vger.kernel.org
Signed-off-by: Abhishek Pandit-Subedi <abhishekpandit@chromium.org>
Signed-off-by: Luiz Augusto von Dentz <luiz.von.dentz@intel.com>
net/bluetooth/hci_sync.c