Skip to content

Commit 02298b7

Browse files
YuuoniyMarc Zyngier
authored andcommitted
irqchip/ti-sci: Fix refcount leak in ti_sci_intr_irq_domain_probe
of_irq_find_parent() returns a node pointer with refcount incremented, We should use of_node_put() on it when not needed anymore. Add missing of_node_put() to avoid refcount leak. Fixes: cd844b0 ("irqchip/ti-sci-intr: Add support for Interrupt Router driver") Signed-off-by: Miaoqian Lin <linmq006@gmail.com> Signed-off-by: Marc Zyngier <maz@kernel.org> Link: https://lore.kernel.org/r/20230102085611.3955984-1-linmq006@gmail.com
1 parent 9419e70 commit 02298b7

1 file changed

Lines changed: 1 addition & 0 deletions

File tree

drivers/irqchip/irq-ti-sci-intr.c

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -236,6 +236,7 @@ static int ti_sci_intr_irq_domain_probe(struct platform_device *pdev)
236236
}
237237

238238
parent_domain = irq_find_host(parent_node);
239+
of_node_put(parent_node);
239240
if (!parent_domain) {
240241
dev_err(dev, "Failed to find IRQ parent domain\n");
241242
return -ENODEV;

0 commit comments

Comments
 (0)