perf: check return value of armpmu_request_irq()
PATCH 1/1 perf: check return value of armpmu_request_irq()
When the function armpmu_request_irq() failed, goto err
Signed-off-by Ren Yu <[email protected]>
--- drivers/perf/arm_pmu_acpi.c | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-)
drivers/perf/arm_pmu_acpi.c +3 -1
@@ -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 ;
Signature · 7 lines
2.25.1 _______________________________________________ linux-arm-kernel mailing list [email protected] http://lists.infradead.org/mailman/listinfo/linux-arm-kernel
Quoted 3 lines · Ren Yu
When the function
armpmu_request_irq()failed, goto err
Applied to will (for-next/perf), thanks!
[1/1] perf: check return value of armpmu_request_irq()
https://git.kernel.org/will/c/4b5b7129095b
Cheers,
Signature · 5 lines
Will https://fixes.arm64.dev https://next.arm64.dev https://will.arm64.dev