[PATCH v2] clk/samsung: fix parent clock refcount leak in exynos_clkout_probe

Krzysztof Kozlowski krzk at kernel.org
Sun Jun 28 08:00:19 PDT 2026


On 28/06/2026 14:54, WenTao Liang wrote:
> of_clk_get_by_name() acquires clock references stored in the local
> parents[] array. All error paths correctly release these via the clks_put
> label, but the success path returns 0 without releasing the parent
> references. The references were only needed to obtain clock names for
> registration and are permanently leaked after probe completes.
> 
> Suggested-by: Greg KH <gregkh at linuxfoundation.org>

What was suggested by Greg?

> Fixes: 9484f2cb8332 ("clk: samsung: exynos-clkout: convert to module driver")
> Cc: stable at vger.kernel.org
> Signed-off-by: WenTao Liang <vulab at iscas.ac.cn>
> ---
> Changes in v2:
> - Fix patch format based on reviewer feedback

So what is happening here with LLM?


Best regards,
Krzysztof



More information about the linux-arm-kernel mailing list