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

Commit e2e0cacb authored by Johan Hedberg's avatar Johan Hedberg Committed by Gustavo Padovan
Browse files

Bluetooth: Fix leaking blacklist when unregistering a hci device



The blacklist should be freed before the hci device gets unregistered.

Signed-off-by: default avatarJohan Hedberg <johan.hedberg@nokia.com>
Signed-off-by: default avatarGustavo F. Padovan <padovan@profusion.mobi>
parent 4571928f
Loading
Loading
Loading
Loading
+4 −0
Original line number Diff line number Diff line
@@ -1011,6 +1011,10 @@ int hci_unregister_dev(struct hci_dev *hdev)

	destroy_workqueue(hdev->workqueue);

	hci_dev_lock_bh(hdev);
	hci_blacklist_clear(hdev);
	hci_dev_unlock_bh(hdev);

	__hci_dev_put(hdev);

	return 0;