]> git.proxmox.com Git - mirror_ubuntu-focal-kernel.git/commit
Bluetooth: btmtkuart: Improve exception handling in btmtuart_probe()
authorChuhong Yuan <hslester96@gmail.com>
Fri, 29 May 2020 02:27:26 +0000 (10:27 +0800)
committerKhalid Elmously <khalid.elmously@canonical.com>
Sat, 8 Aug 2020 05:53:12 +0000 (01:53 -0400)
commit0015212f1f6d453efc2f874fb21839faa0748e18
treee548b67e072e5bc88e8170b994a8a798683366be
parent71149a8a1c920ae731bf3d9e9fba098269fd5dee
Bluetooth: btmtkuart: Improve exception handling in btmtuart_probe()

BugLink: https://bugs.launchpad.net/bugs/1885023
[ Upstream commit 4803c54ca24923a30664bea2a7772db6e7303c51 ]

Calls of the functions clk_disable_unprepare() and hci_free_dev()
were missing for the exception handling.
Thus add the missed function calls together with corresponding
jump targets.

Fixes: 055825614c6b ("Bluetooth: btmtkuart: add an implementation for clock osc property")
Signed-off-by: Chuhong Yuan <hslester96@gmail.com>
Signed-off-by: Marcel Holtmann <marcel@holtmann.org>
Signed-off-by: Sasha Levin <sashal@kernel.org>
Signed-off-by: Kamal Mostafa <kamal@canonical.com>
Signed-off-by: Kelsey Skunberg <kelsey.skunberg@canonical.com>
drivers/bluetooth/btmtkuart.c