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)
committerLuiz Augusto von Dentz <luiz.von.dentz@intel.com>
Wed, 23 Oct 2024 14:19:44 +0000 (10:19 -0400)
commit989fa5171f005ecf63440057218d8aeb1795287d
tree8cfc4fea3b25d0f8d609d2c3894b1341a9a5a659
parent6e62807c7fbb3c758d233018caf94dfea9c65dbd
Bluetooth: hci_core: Disable works on hci_unregister_dev

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>
net/bluetooth/hci_core.c
net/bluetooth/hci_sync.c