x86/IRQs: correct/tighten vector check in _clear_irq_vector()
authorJan Beulich <jbeulich@suse.com>
Mon, 22 Jul 2019 09:45:28 +0000 (11:45 +0200)
committerJan Beulich <jbeulich@suse.com>
Mon, 22 Jul 2019 09:45:28 +0000 (11:45 +0200)
commitc6b0dad9345ee6935170cd39a28f0cfdcd7c5b91
treeef278bfcddc00c587933e78a928a743222261abe
parent0d7fd5f2b8ede776a8a395c1fd0427139ffa3219
x86/IRQs: correct/tighten vector check in _clear_irq_vector()

If any particular value was to be checked against, it would need to be
IRQ_VECTOR_UNASSIGNED.

Reported-by: Roger Pau Monné <roger.pau@citrix.com>
Be more strict though and use valid_irq_vector() instead.

Take the opportunity and also convert local variables to unsigned int.

Signed-off-by: Jan Beulich <jbeulich@suse.com>
Reviewed-by: Roger Pau Monné <roger.pau@citrix.com>
Acked-by: Andrew Cooper <andrew.cooper3@citrix.com>
xen/arch/x86/irq.c