mirror of
https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git/
synced 2026-09-28 19:20:30 +00:00
irqchip/loongson-liointc: Fix improper error handling in liointc_init()
[ Upstream commit4a60a3cdcf] 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 commitb2c4c3969f("irqchip/loongson-liointc: irqchip add 2.0 version") did. Fixes:0858ed035a("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>
This commit is contained in:
parent
773c9d7f12
commit
6a9592cd34
1 changed files with 4 additions and 1 deletions
Loading…
Add table
Add a link
Reference in a new issue