Commit b83764f9 authored by Miao-chen Chou's avatar Miao-chen Chou Committed by Marcel Holtmann

Bluetooth: Fix kernel oops triggered by hci_adv_monitors_clear()

This fixes the kernel oops by removing unnecessary background scan
update from hci_adv_monitors_clear() which shouldn't invoke any work
queue.

The following test was performed.
- Run "rmmod btusb" and verify that no kernel oops is triggered.
Signed-off-by: default avatarMiao-chen Chou <mcchou@chromium.org>
Reviewed-by: default avatarAbhishek Pandit-Subedi <abhishekpandit@chromium.org>
Reviewed-by: default avatarAlain Michaud <alainm@chromium.org>
Signed-off-by: default avatarMarcel Holtmann <marcel@holtmann.org>
parent 461f95f0
...@@ -3005,8 +3005,6 @@ void hci_adv_monitors_clear(struct hci_dev *hdev) ...@@ -3005,8 +3005,6 @@ void hci_adv_monitors_clear(struct hci_dev *hdev)
hci_free_adv_monitor(monitor); hci_free_adv_monitor(monitor);
idr_destroy(&hdev->adv_monitors_idr); idr_destroy(&hdev->adv_monitors_idr);
hci_update_background_scan(hdev);
} }
void hci_free_adv_monitor(struct adv_monitor *monitor) void hci_free_adv_monitor(struct adv_monitor *monitor)
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment