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] [xen-4.1-testing] x86: Check for valid pirq values in hv

To: xen-changelog@xxxxxxxxxxxxxxxxxxx
Subject: [Xen-changelog] [xen-4.1-testing] x86: Check for valid pirq values in hvm_domain_use_pirq
From: Xen patchbot-4.1-testing <patchbot@xxxxxxx>
Date: Fri, 13 May 2011 16:16:22 +0100
Delivery-date: Fri, 13 May 2011 08:18:42 -0700
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 Stefano Stabellini <stefano.stabellini@xxxxxxxxxxxxx>
# Date 1305219854 -3600
# Node ID 51ad19c58962e3c5f90a9d96b1d0cd2f4d665631
# Parent  ed630a821de1442270d4f1c4228262e406fdeb2e
x86: Check for valid pirq values in hvm_domain_use_pirq

Signed-off-by: Stefano Stabellini <stefano.stabellini@xxxxxxxxxxxxx>
xen-unstable changeset:   23339:f9bb0bbea7c2
xen-unstable date:        Thu May 12 16:42:54 2011 +0100
---


diff -r ed630a821de1 -r 51ad19c58962 xen/arch/x86/irq.c
--- a/xen/arch/x86/irq.c        Thu May 12 18:03:47 2011 +0100
+++ b/xen/arch/x86/irq.c        Thu May 12 18:04:14 2011 +0100
@@ -1871,7 +1871,7 @@
 {
     int emuirq;
     
-    if ( !is_hvm_domain(d) )
+    if ( !is_hvm_domain(d) || pirq < 0 )
         return 0;
 
     emuirq = domain_pirq_to_emuirq(d, pirq);

_______________________________________________
Xen-changelog mailing list
Xen-changelog@xxxxxxxxxxxxxxxxxxx
http://lists.xensource.com/xen-changelog

<Prev in Thread] Current Thread [Next in Thread>
  • [Xen-changelog] [xen-4.1-testing] x86: Check for valid pirq values in hvm_domain_use_pirq, Xen patchbot-4 . 1-testing <=