[PATCH] media: exynos4-is: Release clocks if enabling the bus clock fails
Krzysztof Kozlowski
krzk at kernel.org
Tue Nov 3 01:16:56 PST 2026
On 03/11/2026 10:06, Wentao Liang wrote:
> fimc_clk_get() acquires and prepares all of the FIMC clocks. If the
> subsequent clk_set_rate() or clk_enable() call on the bus clock fails,
> fimc_probe() returns immediately without calling fimc_clk_put(), leaking
> the clock references and leaving the clocks prepared.
>
> Jump to a common cleanup label that releases the clocks on both failures.
>
> Fixes: b71b56b264ae ("[media] s5p-fimc: Check return value of clk_enable/clk_set_rate")
> Cc: stable at vger.kernel.org
> Assisted-by: DeepSeek-V4.1-Flash and OpenAI Codex
You just don't bother to read replies, right?
Best regards,
Krzysztof
More information about the linux-arm-kernel
mailing list