]> git.baikalelectronics.ru Git - kernel.git/commit
Bluetooth: Clear suspend tasks on unregister
authorAbhishek Pandit-Subedi <abhishekpandit@chromium.org>
Mon, 31 Aug 2020 16:51:27 +0000 (09:51 -0700)
committerMarcel Holtmann <marcel@holtmann.org>
Tue, 1 Sep 2020 11:22:41 +0000 (13:22 +0200)
commit0e9952804ec9c8ba60f131225eab80634339f042
treec27d8c61907fbb59fd327c9f9942509f4509cbb3
parentd33fe77bdf75806d785dabf90d21d962122e5296
Bluetooth: Clear suspend tasks on unregister

While unregistering, make sure to clear the suspend tasks before
cancelling the work. If the unregister is called during resume from
suspend, this will unnecessarily add 2s to the resume time otherwise.

Fixes: 4e8c36c3b0d73d (Bluetooth: Fix suspend notifier race)
Signed-off-by: Abhishek Pandit-Subedi <abhishekpandit@chromium.org>
Signed-off-by: Marcel Holtmann <marcel@holtmann.org>
net/bluetooth/hci_core.c