[<prev] [next>] [<thread-prev] [day] [month] [year] [list]
Message-ID: <edba7c7e-0b6a-64ac-a267-1e9bfef60d12@linaro.org>
Date: Wed, 19 Apr 2023 09:37:56 +0200
From: Daniel Lezcano <daniel.lezcano@...aro.org>
To: Kang Chen <void0red@...t.edu.cn>
Cc: amitk@...nel.org, angelogioacchino.delregno@...labora.com,
bchihi@...libre.com, daniel@...rotopia.org, dzm91@...t.edu.cn,
error27@...il.com, henry.yen@...iatek.com,
hust-os-kernel-patches@...glegroups.com,
linux-arm-kernel@...ts.infradead.org, linux-kernel@...r.kernel.org,
linux-mediatek@...ts.infradead.org, linux-pm@...r.kernel.org,
matthias.bgg@...il.com, rafael@...nel.org, rdunlap@...radead.org,
rui.zhang@...el.com
Subject: Re: [PATCH v5 1/2] thermal: mediatek: use devm_of_iomap to avoid
resource leak in mtk_thermal_probe
On 19/04/2023 04:07, Kang Chen wrote:
> Smatch reports:
> 1. mtk_thermal_probe() warn: 'apmixed_base' from of_iomap() not released.
> 2. mtk_thermal_probe() warn: 'auxadc_base' from of_iomap() not released.
>
> The original code forgets to release iomap resource when handling errors,
> fix it by switch to devm_of_iomap.
>
> Fixes: 89945047b166 ("thermal: mediatek: Add tsensor support for V2 thermal system")
> Signed-off-by: Kang Chen <void0red@...t.edu.cn>
> Reviewed-by: Dongliang Mu <dzm91@...t.edu.cn>
> Reviewed-by: AngeloGioacchino Del Regno <angelogioacchino.delregno@...labora.com>
> ---
Dropped v4 and applied v5
Thanks
--
<http://www.linaro.org/> Linaro.org │ Open source software for ARM SoCs
Follow Linaro: <http://www.facebook.com/pages/Linaro> Facebook |
<http://twitter.com/#!/linaroorg> Twitter |
<http://www.linaro.org/linaro-blog/> Blog
Powered by blists - more mailing lists