x86: fix an off-by-one pirq range check

Signed-off-by: Jan Beulich <jbeulich@novell.com>
This commit is contained in:
Keir Fraser committed 2010-06-30 18:11:09 +01:00
1 parent 3f3ba5b3d4
commit 1b2b50ec3f
1 file changed
+1 -1
+1 -1
View File
@@ -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);
Reference in new issue
Block a user
Blocking a user prevents them from interacting with repositories, such as opening or commenting on pull requests or issues. Learn more about blocking a user.