summaryrefslogtreecommitdiffstats
path: root/kernel/drivers/perf/arm_pmu.c
diff options
context:
space:
mode:
Diffstat (limited to 'kernel/drivers/perf/arm_pmu.c')
-rw-r--r--kernel/drivers/perf/arm_pmu.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/kernel/drivers/perf/arm_pmu.c b/kernel/drivers/perf/arm_pmu.c
index be3755c97..8af1f900e 100644
--- a/kernel/drivers/perf/arm_pmu.c
+++ b/kernel/drivers/perf/arm_pmu.c
@@ -815,6 +815,7 @@ static int of_pmu_irq_cfg(struct arm_pmu *pmu)
if (i > 0 && spi != using_spi) {
pr_err("PPI/SPI IRQ type mismatch for %s!\n",
dn->name);
+ of_node_put(dn);
kfree(irqs);
return -EINVAL;
}