summaryrefslogtreecommitdiff
path: root/rust/helpers/blk.c
diff options
context:
space:
mode:
authorZhen Ni <zhen.ni@easystack.cn>2025-08-06 10:55:38 +0800
committerKrzysztof Kozlowski <krzysztof.kozlowski@linaro.org>2025-08-13 09:46:29 +0200
commit6744085079e785dae5f7a2239456135407c58b25 (patch)
tree6d14361f9e0398562350bdf516085665725e0188 /rust/helpers/blk.c
parentd140f3ba76ac98faad7f9b37ef5a3dcbd57f59e2 (diff)
memory: samsung: exynos-srom: Fix of_iomap leak in exynos_srom_probe
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. Fixes: 8ac2266d8831 ("memory: samsung: exynos-srom: Add support for bank configuration") Cc: stable@vger.kernel.org Signed-off-by: Zhen Ni <zhen.ni@easystack.cn> Link: https://lore.kernel.org/r/20250806025538.306593-1-zhen.ni@easystack.cn Signed-off-by: Krzysztof Kozlowski <krzysztof.kozlowski@linaro.org>
Diffstat (limited to 'rust/helpers/blk.c')
0 files changed, 0 insertions, 0 deletions