Re: [PATCH] clk: keystone: syscon-clk: fix regmap leak on probe failure
From: Stephen Boyd
Date: Sun Nov 30 2025 - 15:05:50 EST
Quoting Johan Hovold (2025-11-27 05:42:43)
> The mmio regmap allocated during probe is never freed.
>
> Switch to using the device managed allocator so that the regmap is
> released on probe failures (e.g. probe deferral) and on driver unbind.
>
> Fixes: a250cd4c1901 ("clk: keystone: syscon-clk: Do not use syscon helper to build regmap")
> Cc: stable@xxxxxxxxxxxxxxx # 6.15
> Cc: Andrew Davis <afd@xxxxxx>
> Signed-off-by: Johan Hovold <johan@xxxxxxxxxx>
> ---
Applied to clk-next