* [PATCH] perf: check return value of armpmu_request_irq()
@ 2022-04-25 10:04 Ren Yu
2022-05-06 14:43 ` Will Deacon
0 siblings, 1 reply; 2+ messages in thread
From: Ren Yu @ 2022-04-25 10:04 UTC (permalink / raw)
To: will; +Cc: mark.rutland, linux-arm-kernel, linux-kernel, liqiong, yuzhe, Ren Yu
When the function armpmu_request_irq() failed, goto err
Signed-off-by: Ren Yu <renyu@nfschina.com>
---
drivers/perf/arm_pmu_acpi.c | 4 +++-
1 file changed, 3 insertions(+), 1 deletion(-)
diff --git a/drivers/perf/arm_pmu_acpi.c b/drivers/perf/arm_pmu_acpi.c
index f5c7a845cd7b..96ffadd654ff 100644
--- a/drivers/perf/arm_pmu_acpi.c
+++ b/drivers/perf/arm_pmu_acpi.c
@@ -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;
--
2.25.1
^ permalink raw reply related [flat|nested] 2+ messages in thread
* Re: [PATCH] perf: check return value of armpmu_request_irq()
2022-04-25 10:04 [PATCH] perf: check return value of armpmu_request_irq() Ren Yu
@ 2022-05-06 14:43 ` Will Deacon
0 siblings, 0 replies; 2+ messages in thread
From: Will Deacon @ 2022-05-06 14:43 UTC (permalink / raw)
To: Ren Yu
Cc: catalin.marinas, kernel-team, Will Deacon, linux-arm-kernel,
liqiong, mark.rutland, yuzhe, linux-kernel
On Mon, 25 Apr 2022 18:04:36 +0800, Ren Yu wrote:
> 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,
--
Will
https://fixes.arm64.dev
https://next.arm64.dev
https://will.arm64.dev
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2022-05-06 14:43 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2022-04-25 10:04 [PATCH] perf: check return value of armpmu_request_irq() Ren Yu
2022-05-06 14:43 ` Will Deacon
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).