perf/arm_pmu_platform: Fix error handling
authorRobin Murphy <robin.murphy@arm.com>
Fri, 26 Mar 2021 16:02:41 +0000 (16:02 +0000)
committerWill Deacon <will@kernel.org>
Tue, 30 Mar 2021 10:41:50 +0000 (11:41 +0100)
commite338cb6bef254821a8c095018fd27254d74bfd6a
tree8cfa200a0a0a5d9f28c6115351d0544e60e4fc6a
parent11fa1dc8020a2a9e0c59998920092d4df3fb7308
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>
drivers/perf/arm_pmu_platform.c