OSDN Git Service

Bluetooth: Fix kernel oops triggered by hci_adv_monitors_clear()
authorMiao-chen Chou <mcchou@chromium.org>
Tue, 30 Jun 2020 03:15:00 +0000 (20:15 -0700)
committerMarcel Holtmann <marcel@holtmann.org>
Tue, 7 Jul 2020 15:38:11 +0000 (17:38 +0200)
commitb83764f9220a4a14525657466f299850bbc98de9
tree99d52383b6b5dab48667c26d03ccd929e931be82
parent461f95f04f19382dcfd17da2d8db37e0cdc719f2
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: Miao-chen Chou <mcchou@chromium.org>
Reviewed-by: Abhishek Pandit-Subedi <abhishekpandit@chromium.org>
Reviewed-by: Alain Michaud <alainm@chromium.org>
Signed-off-by: Marcel Holtmann <marcel@holtmann.org>
net/bluetooth/hci_core.c