Commit 4b5b7129 authored by Ren Yu's avatar Ren Yu Committed by Will Deacon

perf: check return value of armpmu_request_irq()

When the function armpmu_request_irq() failed, goto err
Signed-off-by: default avatarRen Yu <renyu@nfschina.com>
Link: https://lore.kernel.org/r/20220425100436.4881-1-renyu@nfschina.comSigned-off-by: default avatarWill Deacon <will@kernel.org>
parent c7a9dcea
......@@ -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;
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment