linux-brain/arch/arm/mach-exynos
Krzysztof Kozlowski 7aea78a5ae ARM: exynos: Clear global variable on init error path
[ Upstream commit cd4806911c ]

For most of Exynos SoCs, Power Management Unit (PMU) address space is
mapped into global variable 'pmu_base_addr' very early when initializing
PMU interrupt controller.  A lot of other machine code depends on it so
when doing iounmap() on this address, clear the global as well to avoid
usage of invalid value (pointing to unmapped memory region).

Properly mapped PMU address space is a requirement for all other machine
code so this fix is purely theoretical.  Boot will fail immediately in
many other places after following this error path.

Signed-off-by: Krzysztof Kozlowski <krzk@kernel.org>
Signed-off-by: Sasha Levin <alexander.levin@microsoft.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
2018-09-26 08:36:33 +02:00
..
include/mach ARM: EXYNOS: Remove unused DMC and CMU offsets and their mappings 2016-08-24 06:42:27 +02:00
Kconfig ARM: SoC platform updates for v4.9 2016-10-07 21:18:42 -07:00
Makefile Topic branch for Exynos MFC changes for v4.8: 2016-06-19 22:39:15 -07:00
common.h ARM: SAMSUNG: Fix missing s5p_init_cpu() declaration 2016-06-22 12:33:14 +02:00
exynos-smc.S ARM: EXYNOS: Add support for secure monitor calls 2013-04-09 01:52:06 +09:00
exynos.c ARM: EXYNOS: Remove unused DMC and CMU offsets and their mappings 2016-08-24 06:42:27 +02:00
firmware.c ARM: EXYNOS: Fixups for big-endian operation 2016-06-21 13:25:58 +02:00
headsmp.S ARM: EXYNOS: Fixups for big-endian operation 2016-06-21 13:25:58 +02:00
mcpm-exynos.c ARM: EXYNOS: Move pmu specific headers under "linux/soc/samsung" 2016-02-25 10:13:36 +09:00
platsmp.c ARM: EXYNOS: Fixups for big-endian operation 2016-06-21 13:25:58 +02:00
pm.c ARM: EXYNOS: Fixup endian in pm/pmu 2016-06-21 13:26:31 +02:00
sleep.S ARM: 8325/1: exynos: move resume code to .text section 2015-03-29 23:11:57 +01:00
smc.h ARM: EXYNOS: add AFTR mode support for Exynos3250 2015-03-27 02:35:48 +09:00
suspend.c ARM: exynos: Clear global variable on init error path 2018-09-26 08:36:33 +02:00