]> www.infradead.org Git - users/jedix/linux-maple.git/commit
irqchip/loongson-liointc: Fix improper error handling in liointc_init()
authorLiu Peibao <liupeibao@loongson.cn>
Fri, 4 Nov 2022 11:07:12 +0000 (19:07 +0800)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Sat, 31 Dec 2022 12:31:57 +0000 (13:31 +0100)
commit6a9592cd34827a9fcd7c2d7f425e6b9cdee962bf
tree524a9441eece08449787b8c7a2c119baff719ce3
parent773c9d7f127f7a599d42ceed831de69f5aa22f03
irqchip/loongson-liointc: Fix improper error handling in liointc_init()

[ Upstream commit 4a60a3cdcf1875c965095eb9e22c3d12bbc5a53d ]

For cores less than 4, eg, loongson2k1000 with 2 cores, the
of_property_match_string() may return with an error value,
which causes that liointc could not work. At least isr0 is
what should be checked like previous commit b2c4c3969fd7
("irqchip/loongson-liointc: irqchip add 2.0 version") did.

Fixes: 0858ed035a85 ("irqchip/loongson-liointc: Add ACPI init support")
Signed-off-by: Liu Peibao <liupeibao@loongson.cn>
Signed-off-by: Marc Zyngier <maz@kernel.org>
Link: https://lore.kernel.org/r/20221104110712.23300-1-liupeibao@loongson.cn
Signed-off-by: Sasha Levin <sashal@kernel.org>
drivers/irqchip/irq-loongson-liointc.c