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)
commitef61b6ea154464fefd8a6712d7a3b43b445c3d4a
tree38ed3eb7fa840652dd1defceddd99e86e0ae4f69
parent4b2f4e072fb2599b6a2e5e277f0d2b5705eaa630
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: 182ee45da083 ("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