Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit c6f3c5f7 authored by Gustavo Padovan's avatar Gustavo Padovan
Browse files

Bluetooth: Fix crash when ioctl(HCIUARTSETPROTO) fails



If the fail happens the HCI del_timer may timeout after the the hci dev
unregister. This lead to a kernel crash.

Reported-by: default avatarVinicius Costa Gomes <vinicius.gomes@openbossa.org>
Signed-off-by: default avatarGustavo F. Padovan <padovan@profusion.mobi>
parent de73115a
Loading
Loading
Loading
Loading
+2 −0
Original line number Diff line number Diff line
@@ -1199,6 +1199,8 @@ int hci_unregister_dev(struct hci_dev *hdev)

	hci_unregister_sysfs(hdev);

	hci_del_off_timer(hdev);

	destroy_workqueue(hdev->workqueue);

	hci_dev_lock_bh(hdev);