|
|
|
|
|
|
|
|
|
|
xen-devel
[Xen-devel] [PATCH] linux/evtchn: fix off-by-one error in the pirq range
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 <jbeulich@xxxxxxxxxx>
--- sle11-2009-03-04.orig/drivers/xen/core/evtchn.c 2009-03-04
11:38:32.000000000 +0100
+++ sle11-2009-03-04/drivers/xen/core/evtchn.c 2009-03-04 11:38:50.000000000
+0100
@@ -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);
_______________________________________________
Xen-devel mailing list
Xen-devel@xxxxxxxxxxxxxxxxxxx
http://lists.xensource.com/xen-devel
|
<Prev in Thread] |
Current Thread |
[Next in Thread> |
- [Xen-devel] [PATCH] linux/evtchn: fix off-by-one error in the pirq range check here too,
Jan Beulich <=
|
|
|
|
|