Re: [PATCH] clk: imx: clk-imxrt1050: fix memory leak in imxrt1050_clocks_probe

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



On Tue, 18 Apr 2023 11:34:51 +0000, Kai Ma 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().
>
> Also, fix error handling of hws by adding unregister_hws label, which
> unregisters remaining hws when iomap failed.
>
> [...]

Applied, thanks!

[1/1] clk: imx: clk-imxrt1050: fix memory leak in imxrt1050_clocks_probe
commit: 1b280598ab3bd8a2dc8b96a12530d5b1ee7a8f4a

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