[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Xen-changelog] [linux-2.6.18-xen] linux/evtchn: fix off-by-one error in the pirq range check



# HG changeset patch
# User Keir Fraser <keir.fraser@xxxxxxxxxx>
# Date 1236264035 0
# Node ID f3de83c4677ff77eaf445b3182f00169f6982ce3
# Parent  86e119bc82c5137e502bc8f68f65aba37f0a1a02
linux/evtchn: fix off-by-one error in the pirq range check

Signed-off-by: Jan Beulich <jbeulich@xxxxxxxxxx>
---
 drivers/xen/core/evtchn.c |    2 +-
 1 files changed, 1 insertion(+), 1 deletion(-)

diff -r 86e119bc82c5 -r f3de83c4677f drivers/xen/core/evtchn.c
--- a/drivers/xen/core/evtchn.c Mon Mar 02 11:06:52 2009 +0000
+++ b/drivers/xen/core/evtchn.c Thu Mar 05 14:40:35 2009 +0000
@@ -1077,7 +1077,7 @@ void irq_resume(void)
 
 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-changelog mailing list
Xen-changelog@xxxxxxxxxxxxxxxxxxx
http://lists.xensource.com/xen-changelog


 


Rackspace

Lists.xenproject.org is hosted with RackSpace, monitoring our
servers 24x7x365 and backed by RackSpace's Fanatical Support®.