diff options
| author | Wentao Liang <vulab@iscas.ac.cn> | 2026-09-17 13:48:11 +0000 |
|---|---|---|
| committer | Linus Walleij <linusw@kernel.org> | 2026-09-30 15:15:51 +0200 |
| commit | a854aa8e550502ef05c2836a4b426141d735bed1 (patch) | |
| tree | 0cda478efce7efea79470d43b6250703d86ec7af /include/linux/workqueue_api.h | |
| parent | c2d996d9c6dab31ae41d19507c2b7ef8dbc14602 (diff) | |
pinctrl: nuvoton: Fix clock reference leak in ma35_get_bank_data()
ma35_get_bank_data() obtains the bank clock with of_clk_get() and
stores it in bank->clk, but returns clk_prepare_enable() directly. If
that call fails, the reference taken by of_clk_get() is never dropped,
and the driver has no other clk_put() for it.
Drop the reference when clk_prepare_enable() fails.
Fixes: f805e356313b ("pinctrl: nuvoton: Add ma35d1 pinctrl and GPIO driver")
Signed-off-by: Wentao Liang <vulab@iscas.ac.cn>
Signed-off-by: Linus Walleij <linusw@kernel.org>
Diffstat (limited to 'include/linux/workqueue_api.h')
0 files changed, 0 insertions, 0 deletions
