]> git.ipfire.org Git - thirdparty/kernel/stable.git/commit
Bluetooth: hci_sync: Fix accept_list when attempting to suspend
authorLuiz Augusto von Dentz <luiz.von.dentz@intel.com>
Fri, 5 Jan 2024 15:43:26 +0000 (10:43 -0500)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Wed, 6 Mar 2024 14:48:35 +0000 (14:48 +0000)
commit6699d7ce263cd79a97de566883d2a483c7b04fdd
tree7cc705001246792a81c0b1f1f93209cd8b29b189
parent2ab9a19d896f5a0dd386e1f001c5309bc35f433b
Bluetooth: hci_sync: Fix accept_list when attempting to suspend

[ Upstream commit e5469adb2a7e930d96813316592302d9f8f1df4e ]

During suspend, only wakeable devices can be in acceptlist, so if the
device was previously added it needs to be removed otherwise the device
can end up waking up the system prematurely.

Fixes: 3b42055388c3 ("Bluetooth: hci_sync: Fix attempting to suspend with unfiltered passive scan")
Signed-off-by: Clancy Shang <clancy.shang@quectel.com>
Signed-off-by: Luiz Augusto von Dentz <luiz.von.dentz@intel.com>
Reviewed-by: Paul Menzel <pmenzel@molgen.mpg.de>
Signed-off-by: Sasha Levin <sashal@kernel.org>
net/bluetooth/hci_sync.c