]> git.baikalelectronics.ru Git - kernel.git/commit
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)
commit792df0db7f0db44f1f37d9d4bb623bd886bc6623
tree2ae37a845f1964b8b89fdf8e5dfd90233cd8a142
parent57e4a45760ca0281d634e9ceba18a9a9804ed343
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