[PATCH v2] memory: samsung: exynos-srom: Fix of_iomap leak in exynos_srom_probe

Krzysztof Kozlowski krzysztof.kozlowski at linaro.org
Wed Aug 13 03:30:05 PDT 2025


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 at linaro.org>




More information about the linux-arm-kernel mailing list