[PATCH] irqchip/ath79-cpu: Fix device node leak in ar79_cpu_intc_of_init()

From: Yuwei Chen

Date: Wed Dec 02 2026 - 07:47:42 EST


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@xxxxxxxxxxxxxxx
Signed-off-by: Yuwei Chen <2522445001@xxxxxx>
---
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