mirror of https://lore.kernel.org/lkml/
 help / color / mirror / Atom feed
From: Yuwei Chen <2522445001@qq.com>
To: Thomas Gleixner <tglx@kernel.org>
Cc: Radu Rendec <radu@rendec.net>, linux-kernel@vger.kernel.org
Subject: [PATCH] irqchip/ath79-cpu: Fix device node leak in ar79_cpu_intc_of_init()
Date: Wed,  2 Dec 2026 20:47:24 +0800	[thread overview]
Message-ID: <tencent_1938C9C4D953E5EB2E8CA8500A6FF583DB07@qq.com> (raw)

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


                 reply	other threads:[~2026-12-02 12:47 UTC|newest]

Thread overview: [no followups] expand[flat|nested]  mbox.gz  Atom feed

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=tencent_1938C9C4D953E5EB2E8CA8500A6FF583DB07@qq.com \
    --to=2522445001@qq.com \
    --cc=linux-kernel@vger.kernel.org \
    --cc=radu@rendec.net \
    --cc=tglx@kernel.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
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®