[<prev] [next>] [<thread-prev] [day] [month] [year] [list]
Message-Id: <168656228140.662397.4112940711975875013.b4-ty@linaro.org>
Date: Mon, 12 Jun 2023 12:32:40 +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>,
Zhanhao Hu <zero12113@...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 v2] clk: imx93: fix memory leak and missing unwind goto in imx93_clocks_probe
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@...aro.org>
Powered by blists - more mailing lists