WARNING - OLD ARCHIVES

This is an archived copy of the Xen.org mailing list, which we have preserved to ensure that existing links to archives are not broken. The live archive, which contains the latest emails, can be found at http://lists.xen.org/
   
 
 
Xen 
 
Home Products Support Community News
 
   
 

xen-devel

[Xen-devel] [PATCH] linux/evtchn: fix off-by-one error in the pirq range

To: <xen-devel@xxxxxxxxxxxxxxxxxxx>
Subject: [Xen-devel] [PATCH] linux/evtchn: fix off-by-one error in the pirq range check here too
From: "Jan Beulich" <jbeulich@xxxxxxxxxx>
Date: Wed, 04 Mar 2009 11:33:15 +0000
Delivery-date: Wed, 04 Mar 2009 03:32:23 -0800
Envelope-to: www-data@xxxxxxxxxxxxxxxxxxx
List-help: <mailto:xen-devel-request@lists.xensource.com?subject=help>
List-id: Xen developer discussion <xen-devel.lists.xensource.com>
List-post: <mailto:xen-devel@lists.xensource.com>
List-subscribe: <http://lists.xensource.com/mailman/listinfo/xen-devel>, <mailto:xen-devel-request@lists.xensource.com?subject=subscribe>
List-unsubscribe: <http://lists.xensource.com/mailman/listinfo/xen-devel>, <mailto:xen-devel-request@lists.xensource.com?subject=unsubscribe>
Sender: xen-devel-bounces@xxxxxxxxxxxxxxxxxxx
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 <=