Skip to content
Commit 495b9d0d authored by Nicolas Boichat's avatar Nicolas Boichat Committed by Greg Kroah-Hartman
Browse files

Bluetooth: hci_serdev: Only unregister device if it was registered

[ Upstream commit 202798db ]

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

Fixes: c34dc3bf

 ("Bluetooth: hci_serdev: Introduce hci_uart_unregister_device()")
Signed-off-by: default avatarNicolas Boichat <drinkcat@chromium.org>
Signed-off-by: default avatarMarcel Holtmann <marcel@holtmann.org>
Signed-off-by: default avatarSasha Levin <sashal@kernel.org>
parent ba5c28f7
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment