linux/evtchn: fix off-by-one error in the pirq range check here too
PATCH 1/1 linux/evtchn: fix off-by-one error in the pirq range check here too
As usual, written and tested on 2.6.27.19 and made apply to the 2.6.18 tree without further testing.
Signed-off-by Jan Beulich <[email protected]>
drivers/xen/core/evtchn.c +1 -1
@@ -1160,7 +1160,7 @@ core_initcall(evtchn_register);void evtchn_register_pirq (int irq) { -BUG_ON (irq <PIRQ_BASE || irq -PIRQ_BASE >NR_PIRQS ); +BUG_ON (irq <PIRQ_BASE || irq -PIRQ_BASE >=NR_PIRQS );if (identity_mapped_irq (irq) ||type_from_irq (irq) !=IRQT_UNBOUND )return ; irq_info[irq] =mk_irq_info (IRQT_PIRQ , irq,0 );