Commit a9084d88 authored by Christophe JAILLET's avatar Christophe JAILLET Committed by Marc Zyngier
Browse files

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: 0858ed03 ("irqchip/loongson-liointc: Add ACPI init support")
Signed-off-by: default avatarChristophe JAILLET <christophe.jaillet@wanadoo.fr>
[maz: fix commit message]
Signed-off-by: default avatarMarc Zyngier <maz@kernel.org>
Link: https://lore.kernel.org/r/1a6d74ab70712279023aa7bdbd31bd3aec103bc0.1659382063.git.christophe.jaillet@wanadoo.fr
parent 7e4fd7a1
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -207,7 +207,7 @@ static int liointc_init(phys_addr_t addr, unsigned long size, int revision,
					"reg-names", core_reg_names[i]);

			if (index < 0)
				return -EINVAL;
				goto out_iounmap;

			priv->core_isr[i] = of_iomap(node, index);
		}