]> git.baikalelectronics.ru Git - kernel.git/commit
Bluetooth: hci_serdev: Only unregister device if it was registered
authorNicolas Boichat <drinkcat@chromium.org>
Tue, 21 Jul 2020 02:37:16 +0000 (10:37 +0800)
committerMarcel Holtmann <marcel@holtmann.org>
Tue, 28 Jul 2020 07:17:19 +0000 (09:17 +0200)
commit75db19e98571eafdec545557fa3a9e57af89ddae
tree778c6e0af159b32c64094731470978c2047cb072
parentd002ee832461d5a9300514803f41432c305e651e
Bluetooth: hci_serdev: Only unregister device if it was registered

We should not call hci_unregister_dev if the device was not
successfully registered.

Fixes: c37d2c85a78e964 ("Bluetooth: hci_serdev: Introduce hci_uart_unregister_device()")
Signed-off-by: Nicolas Boichat <drinkcat@chromium.org>
Signed-off-by: Marcel Holtmann <marcel@holtmann.org>
drivers/bluetooth/hci_serdev.c