Re: [PATCH] clk: imx: clk-imx8mn: fix memory leak in imx8mn_clocks_probe

From: Abel Vesa
Date: Mon Jun 12 2023 - 05:49:53 EST



On Tue, 11 Apr 2023 09:51:07 +0800, Hao Luo wrote:
> Use devm_of_iomap() instead of of_iomap() to automatically handle
> the unused ioremap region.
>
> If any error occurs, regions allocated by kzalloc() will leak,
> but using devm_kzalloc() instead will automatically free the memory
> using devm_kfree().
>
> [...]

Applied, thanks!

[1/1] clk: imx: clk-imx8mn: fix memory leak in imx8mn_clocks_probe
commit: 188d070de9132667956f5aadd98d2bd87d3eac89

Best regards,
--
Abel Vesa <abel.vesa@xxxxxxxxxx>