drivers/perf: arm_pmu: avoid CPU device_node reference leak
authorWill Deacon <will.deacon@arm.com>
Mon, 12 Oct 2015 13:48:39 +0000 (14:48 +0100)
committerArnd Bergmann <arnd@arndb.de>
Thu, 15 Oct 2015 15:11:23 +0000 (17:11 +0200)
commitfb659882cc6482bd2e32ec0ab8ab7afeda649413
tree2ae37a845f1964b8b89fdf8e5dfd90233cd8a142
parenta0bcbe969f564d1ec08658170dda72a1b7e9053a
drivers/perf: arm_pmu: avoid CPU device_node reference leak

of_cpu_device_node_get increments the reference count on the CPU
device_node, so we must take care to of_node_put once we've finished
with it.

This patch fixes the perf IRQ probing code to avoid the leak.

Cc: Sudeep Holla <sudeep.holla@arm.com>
Cc: Mark Rutland <mark.rutland@arm.com>
Signed-off-by: Will Deacon <will.deacon@arm.com>
Signed-off-by: Arnd Bergmann <arnd@arndb.de>
drivers/perf/arm_pmu.c