Skip to contentSkip to conversation

Bluetooth: btmtkuart: Improve exception handling in btmtuart_probe()

PATCH Markus Elfring 1 participant 1 message May 28, 2020

Subsystems (3)
lore
Share & tools
lore
#0 lore raw
Quoted 4 lines

btmtuart_probe() misses several function calls in its error paths, including hci_free_dev() and clk_disable_unprepare(). Refactor the code and call correct undo functions to fix the error paths.

How do you think about a wording variant like the following?

Change description:
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.

Would you like to add the tag “Fixes” to the commit message?

Regards,
Markus