irqchip/renesas-rza1: Fix an use-after-free in rza1_irqc_probe()
authorWen Yang <wen.yang99@zte.com.cn>
Mon, 8 Jul 2019 06:19:04 +0000 (14:19 +0800)
committerMarc Zyngier <maz@kernel.org>
Fri, 26 Jul 2019 13:40:01 +0000 (14:40 +0100)
commitb5fa9fc9e809f84bb20439730162eccfed906a76
tree73d1adf4eeec1fc880888f76335728b55a956edd
parent9a446ef08f3bfc0c3deb9c6be840af2528ef8cf8
irqchip/renesas-rza1: Fix an use-after-free in rza1_irqc_probe()

The gic_node is still being used in the rza1_irqc_parse_map() call
after the of_node_put() call, which may result in use-after-free.

Fixes: a644ccb819bc ("irqchip: Add Renesas RZ/A1 Interrupt Controller driver")
Signed-off-by: Wen Yang <wen.yang99@zte.com.cn>
Reviewed-by: Geert Uytterhoeven <geert+renesas@glider.be>
Signed-off-by: Marc Zyngier <maz@kernel.org>
drivers/irqchip/irq-renesas-rza1.c