irqchip/stm32: Fix init error handling
authorDan Carpenter <dan.carpenter@oracle.com>
Wed, 8 Aug 2018 12:03:19 +0000 (15:03 +0300)
committerMarc Zyngier <marc.zyngier@arm.com>
Mon, 13 Aug 2018 08:03:44 +0000 (09:03 +0100)
commit4096165d55218a6f58b6c2ebc5d2428aa0aa70e4
treed61a2147f8416953173b2ea82ea5d793d917a5ef
parent0702bc4d2fe793018ad9aa0eb14bff7f526c4095
irqchip/stm32: Fix init error handling

If there are any errors in stm32_exti_host_init() then it leads to a
NULL dereference in the callers.  The function should clean up after
itself.

Fixes: f9fc1745501e ("irqchip/stm32: Add host and driver data structures")
Reviewed-by: Ludovic Barre <ludovic.barre@st.com>
Signed-off-by: Dan Carpenter <dan.carpenter@oracle.com>
Signed-off-by: Marc Zyngier <marc.zyngier@arm.com>
drivers/irqchip/irq-stm32-exti.c