[PATCH v2] clk: imx93: fix memory leak and missing unwind goto in imx93_clocks_probe
Abel Vesa
abel.vesa at linaro.org
Mon Jun 12 02:32:40 PDT 2023
On Thu, 01 Jun 2023 03:38:25 +0000, Zhanhao Hu wrote:
> In function probe(), it returns directly without unregistered hws
> when error occurs.
>
> Fix this by adding 'goto unregister_hws;' on line 295 and
> line 310.
>
> Use devm_kzalloc() instead of kzalloc() to automatically
> free the memory using devm_kfree() when error occurs.
>
> [...]
Applied, thanks!
[1/1] clk: imx93: fix memory leak and missing unwind goto in imx93_clocks_probe
commit: e02ba11b457647050cb16e7cad16cec3c252fade
Best regards,
--
Abel Vesa <abel.vesa at linaro.org>
More information about the linux-arm-kernel
mailing list