[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-ID: <20250716195835.W1ewP6iP@linutronix.de>
Date: Wed, 16 Jul 2025 21:58:35 +0200
From: Nam Cao <namcao@...utronix.de>
To: Dan Carpenter <dan.carpenter@...aro.org>
Cc: Thomas Gleixner <tglx@...utronix.de>, linux-kernel@...r.kernel.org,
kernel-janitors@...r.kernel.org
Subject: Re: [PATCH next] irqchip/ls-scfg-msi: Fix NULL dereference in error
handling
On Wed, Jul 16, 2025 at 02:43:45PM -0500, Dan Carpenter wrote:
> The call to irq_domain_remove(msi_data->parent); was accidentally left
> behind during a code refactor. It's not necessary to free
> "msi_data->parent" because it is NULL and, in fact, trying to free it
> will lead to a NULL pointer dereference. Delete the unnecessary code.
>
> Fixes: 94b59d5f567a ("irqchip/ls-scfg-msi: Switch to use msi_create_parent_irq_domain()")
> Signed-off-by: Dan Carpenter <dan.carpenter@...aro.org>
Reviewed-by: Nam Cao <namcao@...utronix.de>
Thanks for the fix!
Nam
Powered by blists - more mailing lists