mirror of
https://github.com/xen-project/xen.git
synced 2026-10-29 18:50:05 +01:00
x86: fix an off-by-one pirq range check
Signed-off-by: Jan Beulich <jbeulich@novell.com>
This commit is contained in:
1 parent
3f3ba5b3d4
commit
1b2b50ec3f
1 file changed
+1
-1
+1
-1
@@ -1027,7 +1027,7 @@ static void __pirq_guest_eoi(struct domain *d, int pirq)
|
||||
|
||||
int pirq_guest_eoi(struct domain *d, int irq)
|
||||
{
|
||||
if ( (irq < 0) || (irq > d->nr_pirqs) )
|
||||
if ( (irq < 0) || (irq >= d->nr_pirqs) )
|
||||
return -EINVAL;
|
||||
|
||||
__pirq_guest_eoi(d, irq);
|
||||
|
||||