[<prev] [next>] [<thread-prev] [day] [month] [year] [list]
Message-Id: <168656228136.662397.997641301782961079.b4-ty@linaro.org>
Date: Mon, 12 Jun 2023 12:32:37 +0300
From: Abel Vesa <abel.vesa@...aro.org>
To: Abel Vesa <abelvesa@...nel.org>, Peng Fan <peng.fan@....com>,
Michael Turquette <mturquette@...libre.com>,
Stephen Boyd <sboyd@...nel.org>,
Shawn Guo <shawnguo@...nel.org>,
Sascha Hauer <s.hauer@...gutronix.de>,
Pengutronix Kernel Team <kernel@...gutronix.de>,
Fabio Estevam <festevam@...il.com>,
NXP Linux Team <linux-imx@....com>,
Jesse Taube <mr.bossman075@...il.com>,
Kai Ma <kaima@...t.edu.cn>
Cc: hust-os-kernel-patches@...glegroups.com, linux-clk@...r.kernel.org,
linux-arm-kernel@...ts.infradead.org, linux-kernel@...r.kernel.org
Subject: Re: [PATCH] clk: imx: clk-imxrt1050: fix memory leak in imxrt1050_clocks_probe
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@...aro.org>
Powered by blists - more mailing lists