]> git.baikalelectronics.ru Git - kernel.git/commit
irqchip/loongson-htvec: Fix potential resource leak
authorTiezhu Yang <yangtiezhu@loongson.cn>
Tue, 7 Jul 2020 02:12:47 +0000 (10:12 +0800)
committerMarc Zyngier <maz@kernel.org>
Fri, 17 Jul 2020 12:41:42 +0000 (13:41 +0100)
commitefc47b8dab45fa0cfe18629bba6e453cc0628a56
tree2b8b0606e379a08ccf7f983acc59d6c0c35f63a5
parent0947c125a3b723e07d4676d5bf5a1fb6cbfa0f17
irqchip/loongson-htvec: Fix potential resource leak

In the function htvec_of_init(), system resource "parent_irq"
was not released in an error case. Thus add a jump target for
the completion of the desired exception handling.

Fixes: 0cd713830e37 ("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-4-git-send-email-yangtiezhu@loongson.cn
drivers/irqchip/irq-loongson-htvec.c