]> git.baikalelectronics.ru Git - kernel.git/commit
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)
commit9beb60b57c5d8b40c32845b1836423c2783a60ba
treed61a2147f8416953173b2ea82ea5d793d917a5ef
parentbf57d2e52b780df768d09e66745de56b9495d599
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: 4e8ca0cad398 ("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