of: Fix dereferencing node name in debug output to be safe
authorGrant Likely <grant.likely@linaro.org>
Thu, 19 Sep 2013 16:01:52 +0000 (11:01 -0500)
committerGrant Likely <grant.likely@linaro.org>
Tue, 15 Oct 2013 19:09:19 +0000 (20:09 +0100)
commit8804827b305dbc1c6e24f2b36f1df4a9856b80e8
tree9410216049081192e8b903e75454ffaf892639d3
parentf3cea45a77c8ebdb7efad100e576eb6cb401bf25
of: Fix dereferencing node name in debug output to be safe

Several locations in the of_address and of_irq code dereference the
full_name parameter from a device_node pointer without checking if the
pointer is valid.  This patch switches to use of_node_full_name() which
always checks the pointer.

Signed-off-by: Grant Likely <grant.likely@linaro.org>
drivers/of/address.c
drivers/of/irq.c