android_kernel_oneplus_msm8998/arch/arm/mach-exynos
Krzysztof Kozlowski 016353ef55 ARM: exynos: Clear global variable on init error path
[ Upstream commit cd4806911cee3901bc2b5eb95603cf1958720b57 ]

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:35:06 +02:00
..
include/mach
common.h ARM: EXYNOS: Remove duplicated define of SLEEP_MAGIC 2015-07-21 13:17:05 +09:00
exynos-pmu.h
exynos-smc.S
exynos.c ARM: EXYNOS: switch to using generic cpufreq driver for exynos4x12 2015-08-14 03:07:10 +09:00
firmware.c ARM: EXYNOS: Remove duplicated define of SLEEP_MAGIC 2015-07-21 13:17:05 +09:00
headsmp.S
Kconfig ARM: EXYNOS: select THERMAL_OF 2016-05-04 14:48:53 -07:00
Makefile ARM: SAMSUNG: make local s5p-dev-mfc in mach-exynos 2015-07-30 01:49:00 +09:00
Makefile.boot
mcpm-exynos.c ARM: EXYNOS: reset Little cores when cpu is up 2015-09-14 10:02:43 +09:00
mfc.h
platsmp.c ARM: EXYNOS: Use IOMEM_ERR_PTR when function returns iomem 2015-07-21 13:19:06 +09:00
pm.c
pm_domains.c ARM: EXYNOS: Properly skip unitialized parent clock in power domain on 2016-05-11 11:21:14 +02:00
pmu.c ARM: EXYNOS: Fix potential NULL pointer access in exynos_sys_powerdown_conf 2015-11-17 13:32:56 +09:00
regs-pmu.h ARM: EXYNOS: reset Little cores when cpu is up 2015-09-14 10:02:43 +09:00
regs-srom.h ARM: SAMSUNG: local regs-srom header in mach-exynos 2015-07-30 02:00:35 +09:00
s5p-dev-mfc.c ARM: SAMSUNG: make local s5p-dev-mfc in mach-exynos 2015-07-30 01:49:00 +09:00
sleep.S
smc.h
suspend.c ARM: exynos: Clear global variable on init error path 2018-09-26 08:35:06 +02:00