linux_dsm_epyc7002/drivers/soc/samsung
Krzysztof Kozlowski 56a7c53c49 soc: samsung: exynos-asv: handle reading revision register error
commit 4561560dfb4f847a0b327d48bdd1f45bf1b6261f upstream.

If regmap_read() fails, the product_id local variable will contain
random value from the stack.  Do not try to parse such value and fail
the ASV driver probe.

Fixes: 5ea428595c ("soc: samsung: Add Exynos Adaptive Supply Voltage driver")
Cc: <stable@vger.kernel.org>
Signed-off-by: Krzysztof Kozlowski <krzk@kernel.org>
Reviewed-by: Pankaj Dubey <pankaj.dubey@samsung.com>
Link: https://lore.kernel.org/r/20201207190517.262051-3-krzk@kernel.org
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
2021-03-04 11:38:32 +01:00
..
exynos4-pmu.c soc: samsung: Rename Samsung and Exynos to lowercase 2020-01-07 20:46:31 +01:00
exynos3250-pmu.c soc: samsung: Rename Samsung and Exynos to lowercase 2020-01-07 20:46:31 +01:00
exynos5250-pmu.c soc: samsung: Rename Samsung and Exynos to lowercase 2020-01-07 20:46:31 +01:00
exynos5420-pmu.c soc: samsung: Rename Samsung and Exynos to lowercase 2020-01-07 20:46:31 +01:00
exynos5422-asv.c soc: samsung: Add Exynos Adaptive Supply Voltage driver 2019-10-28 17:59:33 +01:00
exynos5422-asv.h soc: samsung: Add Exynos Adaptive Supply Voltage driver 2019-10-28 17:59:33 +01:00
exynos-asv.c soc: samsung: exynos-asv: handle reading revision register error 2021-03-04 11:38:32 +01:00
exynos-asv.h soc: samsung: Add Exynos Adaptive Supply Voltage driver 2019-10-28 17:59:33 +01:00
exynos-chipid.c soc: samsung: chipid: Fix return value on non-Exynos platforms 2020-03-25 14:27:27 +01:00
exynos-pmu.c soc: samsung: Rename Samsung and Exynos to lowercase 2020-01-07 20:46:31 +01:00
exynos-pmu.h soc: samsung: Rename Samsung and Exynos to lowercase 2020-01-07 20:46:31 +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
Kconfig Samsung mach/soc changes for v5.10 2020-09-26 12:55:43 -07:00
Makefile ARM: samsung: move pm check code to drivers/soc 2020-08-19 21:23:46 +02:00
pm_domains.c
s3c-pm-check.c ARM: samsung: move pm check code to drivers/soc 2020-08-19 21:23:46 +02:00
s3c-pm-debug.c ARM: samsung: move pm check code to drivers/soc 2020-08-19 21:23:46 +02:00