Skip to content

Commit 9419e70

Browse files
YuuoniyMarc Zyngier
authored andcommitted
irqchip/irq-mvebu-gicp: Fix refcount leak in mvebu_gicp_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: a68a63c ("irqchip/irq-mvebu-gicp: Add new driver for Marvell GICP") Signed-off-by: Miaoqian Lin <[email protected]> Signed-off-by: Marc Zyngier <[email protected]> Link: https://lore.kernel.org/r/[email protected]
1 parent 071d068 commit 9419e70

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

drivers/irqchip/irq-mvebu-gicp.c

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -221,6 +221,7 @@ static int mvebu_gicp_probe(struct platform_device *pdev)
221221
}
222222

223223
parent_domain = irq_find_host(irq_parent_dn);
224+
of_node_put(irq_parent_dn);
224225
if (!parent_domain) {
225226
dev_err(&pdev->dev, "failed to find parent IRQ domain\n");
226227
return -ENODEV;

0 commit comments

Comments
 (0)