linux/drivers/soc/samsung
Johan Hovold caf1e989f5 soc: samsung: exynos-pmu: fix device leak on regmap lookup
commit 990eb9a8eb upstream.

Make sure to drop the reference taken when looking up the PMU device and
its regmap.

Note that holding a reference to a device does not prevent its regmap
from going away so there is no point in keeping the reference.

Fixes: 0b7c607502 ("soc: samsung: exynos-pmu: Add regmap support for SoCs that protect PMU regs")
Cc: stable@vger.kernel.org	# 6.9
Cc: Peter Griffin <peter.griffin@linaro.org>
Signed-off-by: Johan Hovold <johan@kernel.org>
Link: https://patch.msgid.link/20251121121852.16825-1-johan@kernel.org
Signed-off-by: Krzysztof Kozlowski <krzk@kernel.org>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
History 2026-01-08 10:14:29 +01:00
..
exynos-asv.c soc: samsung: include linux/array_size.h where needed 2025-05-29 11:02:27 +02:00
exynos-asv.h soc: samsung: exynos-chipid: convert to driver and merge exynos-asv 2021-01-03 17:08:45 +01:00
exynos-chipid.c soc: Switch back to struct platform_driver::remove() 2025-12-18 13:54:46 +01:00
exynos-pmu.c soc: samsung: exynos-pmu: fix device leak on regmap lookup 2026-01-08 10:14:29 +01:00
exynos-pmu.h soc: samsung: exynos-pmu: Add regmap support for SoCs that protect PMU regs 2024-02-25 11:39:23 +01:00
exynos-regulator-coupler.c soc: samsung: exynos-regulator-coupler: Add simple voltage coupler for Exynos5800 2020-07-22 22:33:57 +02:00
exynos-usi.c soc: samsung: include linux/array_size.h where needed 2025-05-29 11:02:27 +02:00
exynos4-pmu.c soc: samsung: exynos-pmu: Re-introduce Exynos4212 support 2023-05-09 19:49:37 +02:00
exynos3250-pmu.c soc: samsung: include linux/array_size.h where needed 2025-05-29 11:02:27 +02:00
exynos5250-pmu.c soc: samsung: include linux/array_size.h where needed 2025-05-29 11:02:27 +02:00
exynos5420-pmu.c soc: samsung: include linux/array_size.h where needed 2025-05-29 11:02:27 +02:00
exynos5422-asv.c soc: samsung: exynos-chipid: convert to a module 2021-09-29 15:50:34 +02:00
exynos5422-asv.h soc: samsung: Add Exynos Adaptive Supply Voltage driver 2019-10-28 17:59:33 +01:00
Kconfig soc: samsung: exynos-pmu: Add regmap support for SoCs that protect PMU regs 2024-02-25 11:39:23 +01:00
Makefile soc: samsung: Move power-domain driver to the genpd dir 2023-07-14 10:40:56 +02:00
s3c-pm-check.c soc: samsung: s3c-pm-check: Fix incorrectly named variable 'val' 2020-11-03 21:37:45 +01:00