diff options
author | Robin Murphy <robin.murphy@arm.com> | 2021-03-26 17:02:41 +0100 |
---|---|---|
committer | Will Deacon <will@kernel.org> | 2021-03-30 12:41:50 +0200 |
commit | e338cb6bef254821a8c095018fd27254d74bfd6a (patch) | |
tree | 8cfa200a0a0a5d9f28c6115351d0544e60e4fc6a /drivers/perf | |
parent | perf/arm_pmu_platform: Use dev_err_probe() for IRQ errors (diff) | |
download | linux-e338cb6bef254821a8c095018fd27254d74bfd6a.tar.xz linux-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.c | 2 |
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; |