diff options
author | Ren Yu | 2022-04-25 18:04:36 +0800 |
---|---|---|
committer | Will Deacon | 2022-05-06 15:04:48 +0100 |
commit | 4b5b7129095b265ba3bae8a6553d22a41e078b96 (patch) | |
tree | d38e383efde8b11dd4901bfa59c9c1ac2b703d90 /drivers/perf | |
parent | c7a9dcea8e98377734821d41cd37bb96add9ca1c (diff) |
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.c | 4 |
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; |