]> git.ipfire.org Git - thirdparty/kernel/stable.git/commit
Bluetooth: hci_core: Disable works on hci_unregister_dev
authorLuiz Augusto von Dentz <luiz.von.dentz@intel.com>
Tue, 22 Oct 2024 15:09:13 +0000 (11:09 -0400)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Fri, 1 Nov 2024 01:02:37 +0000 (02:02 +0100)
commitcfdb13a54e05eb98d9940cb6d1a13e7f994d811f
treee0da89eb47238222a911a914016013edd66ebfda
parentb27330128eca25179637c1816d5a72d6cc408c66
Bluetooth: hci_core: Disable works on hci_unregister_dev

[ Upstream commit 989fa5171f005ecf63440057218d8aeb1795287d ]

This make use of disable_work_* on hci_unregister_dev since the hci_dev is
about to be freed new submissions are not disarable.

Fixes: 0d151a103775 ("Bluetooth: hci_core: cancel all works upon hci_unregister_dev()")
Signed-off-by: Luiz Augusto von Dentz <luiz.von.dentz@intel.com>
Signed-off-by: Sasha Levin <sashal@kernel.org>
net/bluetooth/hci_core.c
net/bluetooth/hci_sync.c