[<prev] [next>] [<thread-prev] [day] [month] [year] [list]
Message-Id: <175508100520.39785.3470511038407039138.b4-ty@linaro.org>
Date: Wed, 13 Aug 2025 12:30:05 +0200
From: Krzysztof Kozlowski <krzysztof.kozlowski@...aro.org>
To: krzk@...nel.org, alim.akhtar@...sung.com,
Zhen Ni <zhen.ni@...ystack.cn>
Cc: linux-kernel@...r.kernel.org, linux-arm-kernel@...ts.infradead.org,
linux-samsung-soc@...r.kernel.org, stable@...r.kernel.org
Subject: Re: [PATCH v2] memory: samsung: exynos-srom: Fix of_iomap leak in
exynos_srom_probe
On Wed, 06 Aug 2025 10:55:38 +0800, Zhen Ni wrote:
> The of_platform_populate() call at the end of the function has a
> possible failure path, causing a resource leak.
>
> Replace of_iomap() with devm_platform_ioremap_resource() to ensure
> automatic cleanup of srom->reg_base.
>
> This issue was detected by smatch static analysis:
> drivers/memory/samsung/exynos-srom.c:155 exynos_srom_probe()warn:
> 'srom->reg_base' from of_iomap() not released on lines: 155.
>
> [...]
Applied, thanks!
[1/1] memory: samsung: exynos-srom: Fix of_iomap leak in exynos_srom_probe
https://git.kernel.org/krzk/linux-mem-ctrl/c/6744085079e785dae5f7a2239456135407c58b25
Best regards,
--
Krzysztof Kozlowski <krzysztof.kozlowski@...aro.org>
Powered by blists - more mailing lists