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>
This commit is contained in:
parent
c7a9dcea8e
commit
4b5b712909
@ -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;
|
||||
|
Loading…
Reference in New Issue
Block a user