[PATCH] clk: imx: clk-imx8mn: fix memory leak in imx8mn_clocks_probe
Abel Vesa
abel.vesa at linaro.org
Mon Jun 12 02:32:39 PDT 2023
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 at linaro.org>
More information about the linux-arm-kernel
mailing list