]> git.baikalelectronics.ru Git - kernel.git/commit
irqchip/loongson-liointc: Fix an error handling path in liointc_init()
authorChristophe JAILLET <christophe.jaillet@wanadoo.fr>
Mon, 1 Aug 2022 19:28:07 +0000 (21:28 +0200)
committerMarc Zyngier <maz@kernel.org>
Fri, 12 Aug 2022 12:47:21 +0000 (13:47 +0100)
commit91f96f385a245699b73927de57abe39db18ba1dd
tree8a93f17945e7f2b25341ea81e32b8f520f089ba2
parentab0686c60c2da52c71e1335b7646223b958fe158
irqchip/loongson-liointc: Fix an error handling path in liointc_init()

All errors lead to the error handling path, except the one dealing
with "reg-names" in DT.

Fix it and release some resources before returning if this test fails.

Fixes: 0656071e1c80 ("irqchip/loongson-liointc: Add ACPI init support")
Signed-off-by: Christophe JAILLET <christophe.jaillet@wanadoo.fr>
[maz: fix commit message]
Signed-off-by: Marc Zyngier <maz@kernel.org>
Link: https://lore.kernel.org/r/1a6d74ab70712279023aa7bdbd31bd3aec103bc0.1659382063.git.christophe.jaillet@wanadoo.fr
drivers/irqchip/irq-loongson-liointc.c