irqchip/loongson-htvec: Check return value of irq_domain_translate_onecell()
authorTiezhu Yang <yangtiezhu@loongson.cn>
Tue, 7 Jul 2020 02:12:48 +0000 (10:12 +0800)
committerMarc Zyngier <maz@kernel.org>
Fri, 17 Jul 2020 12:41:42 +0000 (13:41 +0100)
commitdbec37048d27cee36e103e113b5f9b1852bfe997
treebc8ebf13960bd547cf332cbc7da9fc276cfa98f9
parent652d54e77a438cf38a5731d8f9983c81e72dc429
irqchip/loongson-htvec: Check return value of irq_domain_translate_onecell()

Check the return value of irq_domain_translate_onecell() due to
it may returns -EINVAL if failed.

Fixes: 818e915fbac5 ("irqchip: Add Loongson HyperTransport Vector support")
Signed-off-by: Tiezhu Yang <yangtiezhu@loongson.cn>
Signed-off-by: Marc Zyngier <maz@kernel.org>
Link: https://lore.kernel.org/r/1594087972-21715-5-git-send-email-yangtiezhu@loongson.cn
drivers/irqchip/irq-loongson-htvec.c