]> git.baikalelectronics.ru Git - kernel.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)
commitcce4d1aea0219e3e503ebeca0635315a26a720e7
tree5477e1896979d6c0c337664a792298a91e325d73
parent680e410285f4773a0602af237e136e52f0400d68
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: 406159b0d4a1 ("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