diff options
author | Nicholas Mc Guire <hofrat@osadl.org> | 2018-07-12 11:28:22 +0200 |
---|---|---|
committer | Greg Kroah-Hartman <gregkh@linuxfoundation.org> | 2018-09-26 08:35:09 +0200 |
commit | eafee0717962080c0ff2f26cecb17525d8d7091e (patch) | |
tree | ffd1edfb257c43fdcc7aeaf464cc17a253c04ac6 /mm/huge_memory.c | |
parent | 96d4584f786f1809ba6cd092fb4bfdff15e81d9b (diff) |
ARM: hisi: fix error handling and missing of_node_put
[ Upstream commit 9f30b5ae0585ca5234fe979294b8f897299dec99 ]
of_iomap() can return NULL which seems critical here and thus should be
explicitly flagged so that the cause of system halting can be understood.
As of_find_compatible_node() is returning a device node with refcount
incremented it must be explicitly decremented here.
Signed-off-by: Nicholas Mc Guire <hofrat@osadl.org>
Fixes: commit 7fda91e73155 ("ARM: hisi: enable smp for HiP01")
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 'mm/huge_memory.c')
0 files changed, 0 insertions, 0 deletions