]> Git Repo - linux.git/commit
Bluetooth: core: Fix missing power_on work cancel on HCI close
authorVasyl Vavrychuk <[email protected]>
Tue, 26 Apr 2022 08:18:23 +0000 (11:18 +0300)
committerMarcel Holtmann <[email protected]>
Fri, 13 May 2022 11:05:49 +0000 (13:05 +0200)
commitff7f2926114d3a50f5ffe461a9bce8d761748da5
tree219c8445a587f1c33bb93442f53e92fd9a5d4830
parent4622594766d0bc96d04079a96e13eb58f3f799f2
Bluetooth: core: Fix missing power_on work cancel on HCI close

Move power_on work cancel to hci_dev_close_sync to ensure that power_on
work is canceled after HCI interface down, power off, rfkill, etc.

For example, if

    hciconfig hci0 down

is done early enough during boot, it may run before power_on work.
Then, power_on work will actually bring up interface despite above
hciconfig command.

Signed-off-by: Vasyl Vavrychuk <[email protected]>
Signed-off-by: Marcel Holtmann <[email protected]>
net/bluetooth/hci_core.c
net/bluetooth/hci_sync.c
This page took 0.052741 seconds and 4 git commands to generate.