]> git.baikalelectronics.ru Git - kernel.git/commit
irqchip/loongson-pch-pic: Check return value of irq_domain_translate_twocell()
authorTiezhu Yang <yangtiezhu@loongson.cn>
Tue, 7 Jul 2020 02:12:49 +0000 (10:12 +0800)
committerMarc Zyngier <maz@kernel.org>
Fri, 17 Jul 2020 12:41:42 +0000 (13:41 +0100)
commite95752c550658c7f20808556d6ae109babe4c0d2
treea2d84790265985376439f72e900278f47bf9c82a
parent4554050928e783aeceaf9db95f35ec1f5f4dfb98
irqchip/loongson-pch-pic: Check return value of irq_domain_translate_twocell()

Check the return value of irq_domain_translate_twocell() due to
it may returns -EINVAL if failed and use variable fwspec for it,
and then use a new variable parent_fwspec which is proper for
irq_domain_alloc_irqs_parent().

Fixes: 478119d9579e ("irqchip: Add Loongson PCH PIC controller")
Signed-off-by: Tiezhu Yang <yangtiezhu@loongson.cn>
Signed-off-by: Marc Zyngier <maz@kernel.org>
Link: https://lore.kernel.org/r/1594087972-21715-6-git-send-email-yangtiezhu@loongson.cn
drivers/irqchip/irq-loongson-pch-pic.c