[PATCH 1/3] ARM: hisi: fix error handling and missing of_node_put

2019-04-13 Thread Nicholas Mc Guire
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 Gui

[PATCH 1/3] ARM: hisi: fix error handling and missing of_node_put

2018-07-12 Thread Nicholas Mc Guire
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 Gui