irqchip/renesas-rza1: Prevent 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)
committerThomas Gleixner <tglx@linutronix.de>
Tue, 9 Jul 2019 12:53:50 +0000 (14:53 +0200)
commit7c8e90ddf02f139a90bc29c04302e9914818f0c8
tree89ccf6f0e577abb444266a5f34b408e515e73eaf
parent222a21d29521d144f3dd7a0bc4d4020e448f0126
irqchip/renesas-rza1: Prevent 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>
Signed-off-by: Thomas Gleixner <tglx@linutronix.de>
Reviewed-by: Geert Uytterhoeven <geert+renesas@glider.be>
Link: https://lkml.kernel.org/r/1562566745-7447-3-git-send-email-wen.yang99@zte.com.cn
drivers/irqchip/irq-renesas-rza1.c