ia64/linux-2.6.18-xen.hg

changeset 804:f3de83c4677f

linux/evtchn: fix off-by-one error in the pirq range check

Signed-off-by: Jan Beulich <jbeulich@novell.com>
author Keir Fraser <keir.fraser@citrix.com>
date Thu Mar 05 14:40:35 2009 +0000 (2009-03-05)
parents 86e119bc82c5
children 63be3e5e2f1a
files drivers/xen/core/evtchn.c
line diff
     1.1 --- a/drivers/xen/core/evtchn.c	Mon Mar 02 11:06:52 2009 +0000
     1.2 +++ b/drivers/xen/core/evtchn.c	Thu Mar 05 14:40:35 2009 +0000
     1.3 @@ -1077,7 +1077,7 @@ void irq_resume(void)
     1.4  
     1.5  void evtchn_register_pirq(int irq)
     1.6  {
     1.7 -	BUG_ON(irq < PIRQ_BASE || irq - PIRQ_BASE > NR_PIRQS);
     1.8 +	BUG_ON(irq < PIRQ_BASE || irq - PIRQ_BASE >= NR_PIRQS);
     1.9  	if (identity_mapped_irq(irq) || type_from_irq(irq) != IRQT_UNBOUND)
    1.10  		return;
    1.11  	irq_info[irq] = mk_irq_info(IRQT_PIRQ, irq, 0);