]> asedeno.scripts.mit.edu Git - linux.git/commit
irqchip/gic-v3: Fix ppi-partitions lookup
authorJohan Hovold <johan@kernel.org>
Sat, 11 Nov 2017 16:51:25 +0000 (17:51 +0100)
committerMarc Zyngier <marc.zyngier@arm.com>
Sun, 12 Nov 2017 14:23:19 +0000 (14:23 +0000)
commit00ee9a1ca5080202bc37b44e998c3b2c74d45817
tree5477e1896979d6c0c337664a792298a91e325d73
parent90dc7122a3090ade1ffc6452b7b912cc73562021
irqchip/gic-v3: Fix ppi-partitions lookup

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")
Cc: stable <stable@vger.kernel.org> # 4.7
Signed-off-by: Johan Hovold <johan@kernel.org>
Signed-off-by: Marc Zyngier <marc.zyngier@arm.com>
drivers/irqchip/irq-gic-v3.c