]> git.baikalelectronics.ru Git - kernel.git/commit
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)
commitd9e37bb1494cde06cb231a321dae374445e347a7
tree8cfa200a0a0a5d9f28c6115351d0544e60e4fc6a
parentf7a7733e2e3e7adf72ea15fc8c73c8c9e31b9342
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