summaryrefslogtreecommitdiffstats
path: root/drivers/perf
diff options
context:
space:
mode:
authorRen Yu <renyu@nfschina.com>2022-04-25 18:04:36 +0800
committerWill Deacon <will@kernel.org>2022-05-06 15:04:48 +0100
commit4b5b7129095b265ba3bae8a6553d22a41e078b96 (patch)
treed38e383efde8b11dd4901bfa59c9c1ac2b703d90 /drivers/perf
parentc7a9dcea8e98377734821d41cd37bb96add9ca1c (diff)
downloadlinux-4b5b7129095b265ba3bae8a6553d22a41e078b96.tar.bz2
perf: check return value of armpmu_request_irq()
When the function armpmu_request_irq() failed, goto err Signed-off-by: Ren Yu <renyu@nfschina.com> Link: https://lore.kernel.org/r/20220425100436.4881-1-renyu@nfschina.com Signed-off-by: Will Deacon <will@kernel.org>
Diffstat (limited to 'drivers/perf')
-rw-r--r--drivers/perf/arm_pmu_acpi.c4
1 files changed, 3 insertions, 1 deletions
diff --git a/drivers/perf/arm_pmu_acpi.c b/drivers/perf/arm_pmu_acpi.c
index f5c7a845cd7b..96ffadd654ff 100644
--- a/drivers/perf/arm_pmu_acpi.c
+++ b/drivers/perf/arm_pmu_acpi.c
@@ -159,7 +159,9 @@ static int arm_pmu_acpi_parse_irqs(void)
* them with their PMUs.
*/
per_cpu(pmu_irqs, cpu) = irq;
- armpmu_request_irq(irq, cpu);
+ err = armpmu_request_irq(irq, cpu);
+ if (err)
+ goto out_err;
}
return 0;