Skip to content

Commit 4b5b712

Browse files
Ren Yuwilldeacon
authored andcommitted
perf: check return value of armpmu_request_irq()
When the function armpmu_request_irq() failed, goto err Signed-off-by: Ren Yu <[email protected]> Link: https://lore.kernel.org/r/[email protected] Signed-off-by: Will Deacon <[email protected]>
1 parent c7a9dce commit 4b5b712

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

drivers/perf/arm_pmu_acpi.c

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -159,7 +159,9 @@ static int arm_pmu_acpi_parse_irqs(void)
159159
* them with their PMUs.
160160
*/
161161
per_cpu(pmu_irqs, cpu) = irq;
162-
armpmu_request_irq(irq, cpu);
162+
err = armpmu_request_irq(irq, cpu);
163+
if (err)
164+
goto out_err;
163165
}
164166

165167
return 0;

0 commit comments

Comments
 (0)