Skip to content

Commit 76254bc

Browse files
Yuuoniygregkh
authored andcommitted
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: 0e439ba ("cdx: add MSI support for CDX bus") Cc: [email protected] Signed-off-by: Miaoqian Lin <[email protected]> Acked-by: Nipun Gupta <[email protected]> Link: https://lore.kernel.org/r/[email protected] Signed-off-by: Greg Kroah-Hartman <[email protected]>
1 parent e280228 commit 76254bc

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

drivers/cdx/cdx_msi.c

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -174,6 +174,7 @@ struct irq_domain *cdx_msi_domain_init(struct device *dev)
174174
}
175175

176176
parent = irq_find_matching_fwnode(of_fwnode_handle(parent_node), DOMAIN_BUS_NEXUS);
177+
of_node_put(parent_node);
177178
if (!parent || !msi_get_domain_info(parent)) {
178179
dev_err(dev, "unable to locate ITS domain\n");
179180
return NULL;

0 commit comments

Comments
 (0)