All of lore.kernel.org
 help / color / mirror / Atom feed
From: Thomas Gleixner <tglx@kernel.org>
To: Bhargav Joshi <j.bhargav.u@gmail.com>,
	Tony Lindgren <tony@atomide.com>,
	Jason Cooper <jason@lakedaemon.net>,
	Marc Zyngier <maz@kernel.org>
Cc: linux-kernel@vger.kernel.org, goledhruva@gmail.com,
	m-chawdhry@ti.com, daniel.baluta@gmail.com, simona.toaca@nxp.com,
	j.bhargav.u@gmail.com
Subject: Re: [PATCH 2/2] irqchip: crossbar: Fix parent domain resource leak
Date: Wed, 17 Jun 2026 21:12:39 +0200	[thread overview]
Message-ID: <87fr2lc76g.ffs@fw13> (raw)
In-Reply-To: <20260610-irq-crossbar-fix-v1-2-26797369ff6a@gmail.com>

On Wed, Jun 10 2026 at 02:26, Bhargav Joshi wrote:

irqchip/crossbar: ....

> irq_domain_alloc_irqs_parent() is called in allocate_gic_irq() but
> irq_domain_free_irqs_parent() is never called. causing resource leak.

"causing resource leak." is not a a sentence.

> Fix this by calling irq_domain_free_irqs_parent() in
> crossbar_domain_free().
>
> Fixes: 783d31863fb82 ("irqchip: crossbar: Convert dra7 crossbar to stacked domains")
>

No newline.

> Signed-off-by: Bhargav Joshi <j.bhargav.u@gmail.com>
> ---
>  drivers/irqchip/irq-crossbar.c | 1 +
>  1 file changed, 1 insertion(+)
>
> diff --git a/drivers/irqchip/irq-crossbar.c b/drivers/irqchip/irq-crossbar.c
> index 6a4718be0c58..445c925b9c3d 100644
> --- a/drivers/irqchip/irq-crossbar.c
> +++ b/drivers/irqchip/irq-crossbar.c
> @@ -163,6 +163,7 @@ static void crossbar_domain_free(struct irq_domain *domain, unsigned int virq,
>  		irq_domain_reset_irq_data(d);
>  	}
>  	raw_spin_unlock(&cb->lock);
> +	irq_domain_free_irqs_parent(domain, virq, nr_irqs);
>  }
>  
>  static int crossbar_domain_translate(struct irq_domain *d,

      reply	other threads:[~2026-06-17 19:12 UTC|newest]

Thread overview: 5+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2026-06-09 20:56 [PATCH 0/2] irqchip: crossbar: fix out-of-bounds access and resource leak Bhargav Joshi
2026-06-09 20:56 ` [PATCH 1/2] irqchip: crossbar: Fix out-of-bounds access in crossbar_domain_free() Bhargav Joshi
2026-06-17 19:11   ` Thomas Gleixner
2026-06-09 20:56 ` [PATCH 2/2] irqchip: crossbar: Fix parent domain resource leak Bhargav Joshi
2026-06-17 19:12   ` Thomas Gleixner [this message]

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=87fr2lc76g.ffs@fw13 \
    --to=tglx@kernel.org \
    --cc=daniel.baluta@gmail.com \
    --cc=goledhruva@gmail.com \
    --cc=j.bhargav.u@gmail.com \
    --cc=jason@lakedaemon.net \
    --cc=linux-kernel@vger.kernel.org \
    --cc=m-chawdhry@ti.com \
    --cc=maz@kernel.org \
    --cc=simona.toaca@nxp.com \
    --cc=tony@atomide.com \
    /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 an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.