Skip to content

Commit c3fbab7

Browse files
Ye GuojinMarc Zyngier
authored andcommitted
irqchip/irq-bcm7120-l2: Add put_device() after of_find_device_by_node()
This was found by coccicheck: ./drivers/irqchip/irq-bcm7120-l2.c,328,1-7,ERROR missing put_device; call of_find_device_by_node on line 234, but without a corresponding object release within this function. ./drivers/irqchip/irq-bcm7120-l2.c,341,1-7,ERROR missing put_device; call of_find_device_by_node on line 234, but without a corresponding object release within this function. Reported-by: Zeal Robot <[email protected]> Signed-off-by: Ye Guojin <[email protected]> Reviewed-by: Florian Fainelli <[email protected]> Signed-off-by: Marc Zyngier <[email protected]> Link: https://lore.kernel.org/r/[email protected]
1 parent b383a42 commit c3fbab7

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

drivers/irqchip/irq-bcm7120-l2.c

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -238,6 +238,7 @@ static int __init bcm7120_l2_intc_probe(struct device_node *dn,
238238
}
239239

240240
data->num_parent_irqs = platform_irq_count(pdev);
241+
put_device(&pdev->dev);
241242
if (data->num_parent_irqs <= 0) {
242243
pr_err("invalid number of parent interrupts\n");
243244
ret = -ENOMEM;

0 commit comments

Comments
 (0)