irqchip/gic-v3: Fix ppi-partitions lookup
authorJohan Hovold <johan@kernel.org>
Sat, 11 Nov 2017 16:51:25 +0000 (17:51 +0100)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Thu, 30 Nov 2017 08:39:06 +0000 (08:39 +0000)
commit828064b87804bf078e92366335335219c678706a
treeacf2cda895a1700e618a70d39af7a026054ccdaa
parente5386fca7e04b281e59a719a76243d83e3c2d63a
irqchip/gic-v3: Fix ppi-partitions lookup

commit 00ee9a1ca5080202bc37b44e998c3b2c74d45817 upstream.

Fix child-node lookup during initialisation, which ended up searching
the whole device tree depth-first starting at the parent rather than
just matching on its children.

To make things worse, the parent gic node was prematurely freed, while
the ppi-partitions node was leaked.

Fixes: e3825ba1af3a ("irqchip/gic-v3: Add support for partitioned PPIs")
Signed-off-by: Johan Hovold <johan@kernel.org>
Signed-off-by: Marc Zyngier <marc.zyngier@arm.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/irqchip/irq-gic-v3.c