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/x86: fix off-by-one error in th

To: xen-changelog@xxxxxxxxxxxxxxxxxxx
Subject: [Xen-changelog] [linux-2.6.18-xen] linux/x86: fix off-by-one error in the pirq range checks
From: "Xen patchbot-linux-2.6.18-xen" <patchbot-linux-2.6.18-xen@xxxxxxxxxxxxxxxxxxx>
Date: Tue, 17 Feb 2009 09:05:08 -0800
Delivery-date: Tue, 17 Feb 2009 09:04:51 -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 1234870273 0
# Node ID 2f1b770d84e54f76185181b0cc74337bf79a2a83
# Parent  f0db1ac7ca8d55defe710ab0539bdc8578772677
linux/x86: fix off-by-one error in the pirq range checks

Signed-off-by: Jan Beulich <jbeulich@xxxxxxxxxx>
---
 arch/i386/kernel/io_apic-xen.c   |    2 +-
 arch/x86_64/kernel/io_apic-xen.c |    2 +-
 2 files changed, 2 insertions(+), 2 deletions(-)

diff -r f0db1ac7ca8d -r 2f1b770d84e5 arch/i386/kernel/io_apic-xen.c
--- a/arch/i386/kernel/io_apic-xen.c    Tue Feb 17 11:25:51 2009 +0000
+++ b/arch/i386/kernel/io_apic-xen.c    Tue Feb 17 11:31:13 2009 +0000
@@ -1220,7 +1220,7 @@ int assign_irq_vector(int irq)
 
        BUG_ON(irq != AUTO_ASSIGN && (unsigned)irq >= NR_IRQ_VECTORS);
 
-       if (irq < PIRQ_BASE || irq - PIRQ_BASE > NR_PIRQS)
+       if (irq < PIRQ_BASE || irq - PIRQ_BASE >= NR_PIRQS)
                return -EINVAL;
 
        spin_lock_irqsave(&vector_lock, flags);
diff -r f0db1ac7ca8d -r 2f1b770d84e5 arch/x86_64/kernel/io_apic-xen.c
--- a/arch/x86_64/kernel/io_apic-xen.c  Tue Feb 17 11:25:51 2009 +0000
+++ b/arch/x86_64/kernel/io_apic-xen.c  Tue Feb 17 11:31:13 2009 +0000
@@ -895,7 +895,7 @@ int assign_irq_vector(int irq)
   
        BUG_ON(irq != AUTO_ASSIGN && (unsigned)irq >= NR_IRQ_VECTORS);
 
-       if (irq < PIRQ_BASE || irq - PIRQ_BASE > NR_PIRQS)
+       if (irq < PIRQ_BASE || irq - PIRQ_BASE >= NR_PIRQS)
                return -EINVAL;
 
        spin_lock_irqsave(&vector_lock, flags);

_______________________________________________
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/x86: fix off-by-one error in the pirq range checks, Xen patchbot-linux-2.6.18-xen <=