ARM: 8402/1: perf: Don't use of_node after putting it
authorStephen Boyd <sboyd@codeaurora.org>
Tue, 7 Jul 2015 17:17:05 +0000 (18:17 +0100)
committerRussell King <rmk+kernel@arm.linux.org.uk>
Fri, 17 Jul 2015 14:08:38 +0000 (15:08 +0100)
commit8e0c34b0d268f10d84cb3f79f59c140d545a553a
tree224645cb6eca4979c8737795a9c9826257bc0ac5
parentdf9de3c4295afa45d9c58c3d9039098af5765a21
ARM: 8402/1: perf: Don't use of_node after putting it

It's possible, albeit unlikely, that using the of_node here will
reference freed memory. Call of_node_put() after printing the
name to be safe.

Signed-off-by: Stephen Boyd <sboyd@codeaurora.org>
Signed-off-by: Will Deacon <will.deacon@arm.com>
Signed-off-by: Russell King <rmk+kernel@arm.linux.org.uk>
arch/arm/kernel/perf_event.c