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-changelog

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

To: xen-changelog@xxxxxxxxxxxxxxxxxxx
Subject: [Xen-changelog] [linux-2.6.18-xen] linux/evtchn: fix off-by-one error in the pirq range check
From: "Xen patchbot-linux-2.6.18-xen" <patchbot-linux-2.6.18-xen@xxxxxxxxxxxxxxxxxxx>
Date: Sat, 07 Mar 2009 06:35:40 -0800
Delivery-date: Sat, 07 Mar 2009 06:36:57 -0800
Envelope-to: www-data@xxxxxxxxxxxxxxxxxxx
List-help: <mailto:xen-changelog-request@lists.xensource.com?subject=help>
List-id: BK change log <xen-changelog.lists.xensource.com>
List-post: <mailto:xen-changelog@lists.xensource.com>
List-subscribe: <http://lists.xensource.com/mailman/listinfo/xen-changelog>, <mailto:xen-changelog-request@lists.xensource.com?subject=subscribe>
List-unsubscribe: <http://lists.xensource.com/mailman/listinfo/xen-changelog>, <mailto:xen-changelog-request@lists.xensource.com?subject=unsubscribe>
Reply-to: xen-devel@xxxxxxxxxxxxxxxxxxx
Sender: xen-changelog-bounces@xxxxxxxxxxxxxxxxxxx
# 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

<Prev in Thread] Current Thread [Next in Thread>
  • [Xen-changelog] [linux-2.6.18-xen] linux/evtchn: fix off-by-one error in the pirq range check, Xen patchbot-linux-2.6.18-xen <=