* [PATCH] irqchip/ath79-cpu: Fix device node leak in ar79_cpu_intc_of_init()
@ 2026-12-02 12:47 Yuwei Chen
0 siblings, 0 replies; only message in thread
From: Yuwei Chen @ 2026-12-02 12:47 UTC (permalink / raw)
To: Thomas Gleixner; +Cc: Radu Rendec, linux-kernel
of_parse_phandle_with_args() returns holding a reference on args.np,
but only args.args[0] is used and the node is never released. Drop
the reference after storing the channel number.
Fixes: b29e8b87d589 ("MIPS: ath79: Add OF support to the IRQ controllers")
Cc: stable@vger.kernel.org
Signed-off-by: Yuwei Chen <2522445001@qq.com>
---
drivers/irqchip/irq-ath79-cpu.c | 1 +
1 file changed, 1 insertion(+)
diff --git a/drivers/irqchip/irq-ath79-cpu.c b/drivers/irqchip/irq-ath79-cpu.c
index 9b7273a7f8ce..604cbe6c8f15 100644
--- a/drivers/irqchip/irq-ath79-cpu.c
+++ b/drivers/irqchip/irq-ath79-cpu.c
@@ -79,6 +79,7 @@ static int __init ar79_cpu_intc_of_init(
return err;
irq_wb_chan[irq] = args.args[0];
+ of_node_put(args.np);
}
return mips_cpu_irq_of_init(node, parent);
base-commit: 3dbdc13bd4b313b3d94c0f719378a4641a39db46
--
2.55.0.windows.3
^ permalink raw reply [flat|nested] only message in thread
only message in thread, other threads:[~2026-12-02 12:47 UTC | newest]
Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2026-12-02 12:47 [PATCH] irqchip/ath79-cpu: Fix device node leak in ar79_cpu_intc_of_init() Yuwei Chen
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox
all inboxes | Powered by JetHome®