]> git.baikalelectronics.ru Git - kernel.git/commit
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)
commitcab976a6c4318d9ba12e1cd37a31944ba8cb893f
tree9410216049081192e8b903e75454ffaf892639d3
parentb6d5086dd5e9d948f95a02d996f1a03f5a766da6
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