commit | 202798db9570104728dce8bb57dfeed47ce764bc | [log] [tgz] |
---|---|---|
author | Nicolas Boichat <drinkcat@chromium.org> | Tue Jul 21 10:37:16 2020 +0800 |
committer | Marcel Holtmann <marcel@holtmann.org> | Tue Jul 28 09:17:19 2020 +0200 |
tree | 778c6e0af159b32c64094731470978c2047cb072 | |
parent | 24b065727ceba53cc5bec0e725672417154df24f [diff] |
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: c34dc3bfa7642fd ("Bluetooth: hci_serdev: Introduce hci_uart_unregister_device()") Signed-off-by: Nicolas Boichat <drinkcat@chromium.org> Signed-off-by: Marcel Holtmann <marcel@holtmann.org>