android_kernel_oneplus_msm8998/arch/arm/mach-hisi
Nicholas Mc Guire f615d18bab ARM: hisi: check of_iomap and fix missing of_node_put
[ Upstream commit 81646a3d39ef14749301374a3a0b8311384cd412 ]

of_find_compatible_node() returns a device node with refcount incremented
and thus needs an explicit of_node_put(). Further relying on an unchecked
of_iomap() which can return NULL is problematic here, after all ctrl_base
is critical enough for hix5hd2_set_cpu() to call BUG() if not available
so a check seems mandated here.

Signed-off-by: Nicholas Mc Guire <hofrat@osadl.org>
0002 Fixes: commit 06cc5c1d4d ("ARM: hisi: enable hix5hd2 SoC")
Signed-off-by: Wei Xu <xuwei5@hisilicon.com>
Signed-off-by: Sasha Levin <alexander.levin@microsoft.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
2018-09-26 08:35:09 +02:00
..
core.h ARM: v7 setup function should invalidate L1 cache 2015-06-01 11:30:26 +01:00
hisilicon.c ARM: hisi: Remove clk-provider.h include 2015-07-20 10:52:29 -07:00
hotplug.c ARM: hisi: check of_iomap and fix missing of_node_put 2018-09-26 08:35:09 +02:00
Kconfig ARM: hisi: enable HiP01 SoC 2015-01-21 14:31:06 -08:00
Makefile ARM: v7 setup function should invalidate L1 cache 2015-06-01 11:30:26 +01:00
platmcpm.c ARM: 8370/1: hisi: fix hip04 build without HOTPLUG_CPU 2015-05-28 00:22:49 +01:00
platsmp.c ARM: v7 setup function should invalidate L1 cache 2015-06-01 11:30:26 +01:00