Skip to contentSkip to conversation

perf: check return value of armpmu_request_irq()

PATCH Applied Ren Yu 2 participants 2 messages Apr 25, 2022 – May 6, 2022 Arm PMU profiling and debugging

lore
Share & tools
lore

Ren Yu

author
#0 lore raw

PATCH 1/1 perf: check return value of armpmu_request_irq()

When the function armpmu_request_irq() failed, goto err

---
 drivers/perf/arm_pmu_acpi.c | 4 +++-
 1 file changed, 3 insertions(+), 1 deletion(-)
drivers/perf/arm_pmu_acpi.c +3 -1
index f5c7a845cd7b..96ffadd654ff 100644
@@ -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
maintainer Applied
#1 lore raw
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