summaryrefslogtreecommitdiffstats
path: root/usr
diff options
context:
space:
mode:
authorNicholas Mc Guire <hofrat@osadl.org>2018-07-12 11:28:23 +0200
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>2018-09-26 08:36:38 +0200
commit99bc75c304216415723f8682d04386df77d1aa46 (patch)
tree6bf40ce18c1e3f08bf5b98287f73694d082c4086 /usr
parentedce8b372f7a56ef61d225044ad45a09af8b05a3 (diff)
downloadlinux-stable-99bc75c304216415723f8682d04386df77d1aa46.tar.gz
linux-stable-99bc75c304216415723f8682d04386df77d1aa46.tar.bz2
linux-stable-99bc75c304216415723f8682d04386df77d1aa46.zip
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 06cc5c1d4d73 ("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>
Diffstat (limited to 'usr')
0 files changed, 0 insertions, 0 deletions