cdx: Fix device node reference leak in cdx_msi_domain_init
Add missing of_node_put() call to release
the device node reference obtained via of_parse_phandle().
Fixes: 0e439ba38e ("cdx: add MSI support for CDX bus")
Cc: stable@vger.kernel.org
Signed-off-by: Miaoqian Lin <linmq006@gmail.com>
Acked-by: Nipun Gupta <nipun.gupta@amd.com>
Link: https://lore.kernel.org/r/20250902084933.2418264-1-linmq006@gmail.com
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
pull/1354/merge
parent
e28022873c
commit
76254bc489
|
|
@ -174,6 +174,7 @@ struct irq_domain *cdx_msi_domain_init(struct device *dev)
|
|||
}
|
||||
|
||||
parent = irq_find_matching_fwnode(of_fwnode_handle(parent_node), DOMAIN_BUS_NEXUS);
|
||||
of_node_put(parent_node);
|
||||
if (!parent || !msi_get_domain_info(parent)) {
|
||||
dev_err(dev, "unable to locate ITS domain\n");
|
||||
return NULL;
|
||||
|
|
|
|||
Loading…
Reference in New Issue