Searched hist:d396cb185c0337aae5664b250cdd9a73f6eb1503 (Results 1 – 1 of 1) sorted by relevance
/openbmc/linux/arch/arm/mach-hisi/ |
H A D | hotplug.c | diff d396cb185c0337aae5664b250cdd9a73f6eb1503 Thu Jul 12 04:28:24 CDT 2018 Nicholas Mc Guire <hofrat@osadl.org> ARM: hisi: handle of_iomap and fix missing of_node_put
Relying on an unchecked of_iomap() which can return NULL is problematic here, an explicit check seems mandatory. Also the call to of_find_compatible_node() returns a device node with refcount incremented therefor an explicit of_node_put() is needed here.
Signed-off-by: Nicholas Mc Guire <hofrat@osadl.org> Fixes: commit 22bae4290457 ("ARM: hi3xxx: add hotplug support") Signed-off-by: Wei Xu <xuwei5@hisilicon.com>
|