]> git.baikalelectronics.ru Git - kernel.git/commit
ARM: EXYNOS: Fix potential NULL pointer access in exynos_sys_powerdown_conf
authorPankaj Dubey <pankaj.dubey@samsung.com>
Fri, 13 Nov 2015 09:29:36 +0000 (14:59 +0530)
committerKrzysztof Kozlowski <k.kozlowski@samsung.com>
Tue, 17 Nov 2015 04:32:56 +0000 (13:32 +0900)
commitdf5ecb94e1ac6663d5e5ff8ae697881c1c25935a
tree4d46f511e6b7db8c625b611e9640d3276b2ec0bd
parent837e0eb1c9d194f0eb3cf87d97b2235de146c9fe
ARM: EXYNOS: Fix potential NULL pointer access in exynos_sys_powerdown_conf

If no platform devices binded to the driver but driver itself loaded and
exynos_sys_powerdown_conf is called from
arch/arm/mach-exynos/{suspend.c, pm.c} it will result in NULL pointer access,
to prevent this added check on pmu_context for NULL.

Signed-off-by: Pankaj Dubey <pankaj.dubey@samsung.com>
Reviewed-by: Krzysztof Kozlowski <k.kozlowski@samsung.com>
Tested-by: Krzysztof Kozlowski <k.kozlowski@samsung.com>
Signed-off-by: Krzysztof Kozlowski <k.kozlowski@samsung.com>
arch/arm/mach-exynos/pmu.c