Bluetooth: btmtkuart: Improve exception handling in btmtuart_probe()
Subsystems (3)
Quoted 4 lines
btmtuart_probe()misses several function calls in its error paths, includinghci_free_dev()andclk_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