diff options
author | Nicholas Mc Guire <hofrat@osadl.org> | 2018-07-12 11:28:23 +0200 |
---|---|---|
committer | Wei Xu <xuwei5@hisilicon.com> | 2018-07-16 17:36:47 +0100 |
commit | 81646a3d39ef14749301374a3a0b8311384cd412 (patch) | |
tree | 1ad38911815a8ab4d177dc9cef906bc0f950d227 /scripts/gdb/linux/utils.py | |
parent | 9f30b5ae0585ca5234fe979294b8f897299dec99 (diff) |
ARM: hisi: check of_iomap and fix missing of_node_put
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>
Diffstat (limited to 'scripts/gdb/linux/utils.py')
0 files changed, 0 insertions, 0 deletions