OSDN Git Service

irqchip/atmel-aic: Fix unbalanced of_node_put() in aic_common_irq_fixup()
authorBoris Brezillon <boris.brezillon@free-electrons.com>
Tue, 4 Jul 2017 09:10:39 +0000 (11:10 +0200)
committerMarc Zyngier <marc.zyngier@arm.com>
Tue, 4 Jul 2017 10:09:50 +0000 (11:09 +0100)
commit469bcef53c546bb792aa66303933272991b7831d
treec0f4d03ca380baf50e606cec0dfda75349756b13
parentca38701935138a4aba7dd9e4daf21e13a4663f43
irqchip/atmel-aic: Fix unbalanced of_node_put() in aic_common_irq_fixup()

aic_common_irq_fixup() is calling twice of_node_put() on the same node
thus leading to an unbalanced refcount on the root node.

Signed-off-by: Boris Brezillon <boris.brezillon@free-electrons.com>
Reported-by: Alexandre Belloni <alexandre.belloni@free-electrons.com>
Fixes: b2f579b58e93 ("irqchip: atmel-aic: Add irq fixup infrastructure")
Cc: <stable@vger.kernel.org>
Signed-off-by: Marc Zyngier <marc.zyngier@arm.com>
drivers/irqchip/irq-atmel-aic-common.c