summaryrefslogtreecommitdiff
path: root/include/linux
diff options
context:
space:
mode:
authorWentao Liang <vulab@iscas.ac.cn>2026-09-17 13:50:56 +0000
committerLinus Walleij <linusw@kernel.org>2026-09-30 15:17:04 +0200
commitdfd8259507c53a3c7eb0dd11c1152c88e12aa316 (patch)
treed13126617ab9833dfbda0a280a11f4eb9aed976d /include/linux
parenta854aa8e550502ef05c2836a4b426141d735bed1 (diff)
pinctrl: stm32: Fix clock reference leak in stm32_pctl_probe()
stm32_pctl_probe() obtains one clock per bank with of_clk_get_by_name(), but none of the error paths drop those references: the loop returns directly when a later clock lookup fails, and both the clk_bulk_prepare_enable() failure and the err_register path return without calling clk_bulk_put(). clk_bulk_disable_unprepare() only disables the clocks, it does not release them. Release the references on these paths; the success path keeps them as the driver needs them for suspend/resume. Fixes: 451bc9aea9a1 ("pinctrl: stm32: Add check for clk_enable()") Signed-off-by: Wentao Liang <vulab@iscas.ac.cn> Signed-off-by: Linus Walleij <linusw@kernel.org>
Diffstat (limited to 'include/linux')
0 files changed, 0 insertions, 0 deletions