Re: [PATCH] clk: mmp: pxa168: Fix memory leak in pxa168_clk_init()

From: Stephen Boyd
Date: Sat Dec 16 2023 - 20:15:20 EST


Quoting Kuan-Wei Chiu (2023-12-10 09:52:32)
> In cases where mapping of mpmu/apmu/apbc registers fails, the code path
> does not handle the failure gracefully, potentially leading to a memory
> leak. This fix ensures proper cleanup by freeing the allocated memory
> for 'pxa_unit' before returning.
>
> Signed-off-by: Kuan-Wei Chiu <visitorckw@xxxxxxxxx>
> ---

Applied to clk-next