Messages in this thread | | | From | Peng Fan <> | Subject | RE: [PATCH] clk: imx: scu: Fix memory leak in __imx_clk_gpr_scu() | Date | Tue, 12 Dec 2023 00:40:24 +0000 |
| |
> Subject: [PATCH] clk: imx: scu: Fix memory leak in __imx_clk_gpr_scu() > > In cases where imx_clk_is_resource_owned() returns false, 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 'clk_node' > before returning. > > Signed-off-by: Kuan-Wei Chiu <visitorckw@gmail.com>
Reviewed-by: Peng Fan <peng.fan@nxp.com>
| |