xen/arm: gic-vgic: Fix the assert condition in vgic_connect_hw_irq
authorAndrii Anisov <andrii_anisov@epam.com>
Fri, 25 Jan 2019 17:06:02 +0000 (19:06 +0200)
committerJulien Grall <julien.grall@arm.com>
Tue, 29 Jan 2019 15:32:42 +0000 (15:32 +0000)
commit863549158129d326b2e5850f722bfda643264f2b
tree87b7ca56399cec88994ddce61c2a0c5cf3c48617
parentf50dd67950ca9d5a517501af10de7c8d88d1a188
xen/arm: gic-vgic: Fix the assert condition in vgic_connect_hw_irq

Currently, the assert condition in vgic_connect_hw_irq does not
correspond to the comment above and result to hit the assertion
on HW IRQ disconnection.

Fix the condition so it corresponds to the comment and allows IRQ
disconnection on debug builds.

Fixes: ec2a2f1 ("ARM: VGIC: factor out vgic_connect_hw_irq()")
Signed-off-by: Andrii Anisov <andrii_anisov@epam.com>
Suggested-by: Stefan Nuernberger <snu@amazon.de>
Reviewed-by: Andre Przywara <andre.przywara@arm.com>
[julieng: Reword the commit message]
Acked-by: Julien Grall <julien.grall@arm.com>
Release-acked-by: Juergen Gross <jgross@suse.com>
xen/arch/arm/gic-vgic.c