]> 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)
commit2c2dd30505cadf8b5a7ac74b7747cd5f4de95cb6
tree38ed3eb7fa840652dd1defceddd99e86e0ae4f69
parent8cb1d66a0264d2c1ca5b44c6bd14abc15a3b60bb
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: 9137687cdf7c ("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