Skip to content

Commit a9084d8

Browse files
tititiou36Marc Zyngier
authored andcommitted
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: 0858ed0 ("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
1 parent 7e4fd7a commit a9084d8

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

drivers/irqchip/irq-loongson-liointc.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -207,7 +207,7 @@ static int liointc_init(phys_addr_t addr, unsigned long size, int revision,
207207
"reg-names", core_reg_names[i]);
208208

209209
if (index < 0)
210-
return -EINVAL;
210+
goto out_iounmap;
211211

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

0 commit comments

Comments
 (0)