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)
committerMark Brown <broonie@kernel.org>
Mon, 16 Feb 2015 02:45:22 +0000 (11:45 +0900)
commitbd45afd02396c8c4496056df81d40fa1e2fb14f4
tree35aebc5cce6506fdca49928a5a3d0756fe78c2ef
parent0087951fd2be8229cbdced18475a9f4c0ab23a1f
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>
(cherry picked from commit 8804827b305dbc1c6e24f2b36f1df4a9856b80e8)
Signed-off-by: Mark Brown <broonie@kernel.org>
drivers/of/address.c
drivers/of/irq.c