android_kernel_samsung_univ.../arch/arm/mach-exynos
Krzysztof Kozlowski 63e9a60f43 ARM: EXYNOS: Properly skip unitialized parent clock in power domain on
commit a0a966b83873f33778710a4fc59240244b0734a5 upstream.

We want to skip reparenting a clock on turning on power domain, if we
do not have the parent yet. The parent is obtained when turning the
domain off. However due to a typo, the loop is continued on IS_ERR() of
clock being reparented, not on the IS_ERR() of the parent.

Theoretically this could lead to OOPS on first turn on of a power
domain, if there was no turn off before. Practically that should never
happen because all power domains are turned on by default (reset value,
bootloader does not turn off them usually) so the first action will be
always turn off.

Fixes: 29e5eea06b ("ARM: EXYNOS: Get current parent clock for power domain on/off")
Reported-by: Vladimir Zapolskiy <vz@mleia.com>
Signed-off-by: Krzysztof Kozlowski <k.kozlowski@samsung.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
2016-05-11 11:21:14 +02:00
..
include/mach ARM: SAMSUNG: remove unused DMA infrastructure 2015-01-24 13:09:54 +09:00
common.h ARM: EXYNOS: Remove duplicated define of SLEEP_MAGIC 2015-07-21 13:17:05 +09:00
exynos-pmu.h ARM: EXYNOS: Move PMU specific definitions from common.h 2014-11-21 22:49:44 +09:00
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 ARM: EXYNOS: Remove file path from comment section 2014-07-15 08:40:32 +09:00
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 ARM: SAMSUNG: Reorganize calls to reserve memory for MFC 2014-03-21 02:00:09 +09:00
platsmp.c ARM: EXYNOS: Use IOMEM_ERR_PTR when function returns iomem 2015-07-21 13:19:06 +09:00
pm_domains.c ARM: EXYNOS: Properly skip unitialized parent clock in power domain on 2016-05-11 11:21:14 +02:00
pm.c ARM: EXYNOS: add coupled cpuidle support for Exynos3250 2015-06-06 02:17:57 +09: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 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: SoC cleanups for v4.4 2015-11-10 14:48:36 -08:00