aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/perf
diff options
context:
space:
mode:
authorRobin Murphy <robin.murphy@arm.com>2021-03-26 16:02:41 +0000
committerWill Deacon <will@kernel.org>2021-03-30 11:41:50 +0100
commite338cb6bef254821a8c095018fd27254d74bfd6a (patch)
tree8cfa200a0a0a5d9f28c6115351d0544e60e4fc6a /drivers/perf
parentperf/arm_pmu_platform: Use dev_err_probe() for IRQ errors (diff)
downloadlinux-dev-e338cb6bef254821a8c095018fd27254d74bfd6a.tar.xz
linux-dev-e338cb6bef254821a8c095018fd27254d74bfd6a.zip
perf/arm_pmu_platform: Fix error handling
If we're aborting after failing to register the PMU device, we probably don't want to leak the IRQs that we've claimed. Signed-off-by: Robin Murphy <robin.murphy@arm.com> Link: https://lore.kernel.org/r/53031a607fc8412a60024bfb3bb8cd7141f998f5.1616774562.git.robin.murphy@arm.com Signed-off-by: Will Deacon <will@kernel.org>
Diffstat (limited to 'drivers/perf')
-rw-r--r--drivers/perf/arm_pmu_platform.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/perf/arm_pmu_platform.c b/drivers/perf/arm_pmu_platform.c
index bb6ae955083a..ef9676418c9f 100644
--- a/drivers/perf/arm_pmu_platform.c
+++ b/drivers/perf/arm_pmu_platform.c
@@ -235,7 +235,7 @@ int arm_pmu_device_probe(struct platform_device *pdev,
ret = armpmu_register(pmu);
if (ret)
- goto out_free;
+ goto out_free_irqs;
return 0;