diff options
author | Ye Guojin <ye.guojin@zte.com.cn> | 2021-11-09 06:59:58 +0100 |
---|---|---|
committer | Marc Zyngier <maz@kernel.org> | 2021-12-10 14:23:13 +0100 |
commit | c3fbab7767c53397d7b849799474f5a27cf306e6 (patch) | |
tree | d89d1e63f3b667626cfc0bb66c8953dd8c029c3b /drivers/irqchip/irq-bcm7120-l2.c | |
parent | irqchip/irq-gic-v3-its.c: Force synchronisation when issuing INVALL (diff) | |
download | linux-c3fbab7767c53397d7b849799474f5a27cf306e6.tar.xz linux-c3fbab7767c53397d7b849799474f5a27cf306e6.zip |
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 <zealci@zte.com.cn>
Signed-off-by: Ye Guojin <ye.guojin@zte.com.cn>
Reviewed-by: Florian Fainelli <f.fainelli@gmail.com>
Signed-off-by: Marc Zyngier <maz@kernel.org>
Link: https://lore.kernel.org/r/20211109055958.130287-1-ye.guojin@zte.com.cn
Diffstat (limited to 'drivers/irqchip/irq-bcm7120-l2.c')
-rw-r--r-- | drivers/irqchip/irq-bcm7120-l2.c | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/drivers/irqchip/irq-bcm7120-l2.c b/drivers/irqchip/irq-bcm7120-l2.c index d80e67a6aad2..bb6609cebdbc 100644 --- a/drivers/irqchip/irq-bcm7120-l2.c +++ b/drivers/irqchip/irq-bcm7120-l2.c @@ -238,6 +238,7 @@ static int __init bcm7120_l2_intc_probe(struct device_node *dn, } data->num_parent_irqs = platform_irq_count(pdev); + put_device(&pdev->dev); if (data->num_parent_irqs <= 0) { pr_err("invalid number of parent interrupts\n"); ret = -ENOMEM; |