Re: [PATCH v2] clk: imx93: fix memory leak and missing unwind goto in imx93_clocks_probe

From: Abel Vesa
Date: Mon Jun 12 2023 - 05:48:42 EST



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@xxxxxxxxxx>