1
0
Fork 0
remarkable-linux/arch/arm/mach-hisi
Nicholas Mc Guire 6c4abbeb25 ARM: hisi: check of_iomap and fix missing of_node_put
[ Upstream commit 81646a3d39 ]

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:38:10 +02:00
..
Kconfig irqchip/hip04: Report that effective affinity is a single target 2017-08-18 10:54:42 +02:00
Makefile ARM: v7 setup function should invalidate L1 cache 2015-06-01 11:30:26 +01:00
core.h License cleanup: add SPDX GPL-2.0 license identifier to files with no license 2017-11-02 11:10:55 +01:00
hisilicon.c ARM: hisi: consolidate the hisilicon machine entries 2016-07-07 09:37:59 +01:00
hotplug.c ARM: hisi: check of_iomap and fix missing of_node_put 2018-09-26 08:38:10 +02:00
platmcpm.c ARM: hisi: fix error return code in hip04_smp_init() 2017-03-28 15:30:54 +01:00
platsmp.c ARM: hisi: Fix typo in comment 2017-08-16 10:40:46 +01:00