Re: [PATCH 2/2] Bluetooth: hci_serdev: Only unregister device if it was registered

From: Marcel Holtmann
Date: Tue Jul 28 2020 - 03:17:49 EST


Hi Nicolas,

> 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@xxxxxxxxxxxx>
>
> ---
>
> drivers/bluetooth/hci_serdev.c | 3 ++-
> 1 file changed, 2 insertions(+), 1 deletion(-)

patch has been applied to bluetooth-next tree.

Regards

Marcel