]> git.baikalelectronics.ru Git - kernel.git/commit
irqchip/irq-bcm7120-l2: Add put_device() after of_find_device_by_node()
authorYe Guojin <ye.guojin@zte.com.cn>
Tue, 9 Nov 2021 05:59:58 +0000 (05:59 +0000)
committerMarc Zyngier <maz@kernel.org>
Fri, 10 Dec 2021 13:23:13 +0000 (13:23 +0000)
commit900e540a17aab9932f79f5d244eb0babab7e87d8
treed89d1e63f3b667626cfc0bb66c8953dd8c029c3b
parent1a37d9be0f7ade73143d11c978dffd1a4839ef25
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
drivers/irqchip/irq-bcm7120-l2.c