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

[Xen-changelog] [xen-unstable] x86: Check for valid pirq values in hvm_domain_use_pirq



# HG changeset patch
# User Stefano Stabellini <stefano.stabellini@xxxxxxxxxxxxx>
# Date 1305214974 -3600
# Node ID f9bb0bbea7c27e256275cfe58c16c0077542984e
# Parent  9751bc49639ec4e34837545cdc982d0768e46d94
x86: Check for valid pirq values in hvm_domain_use_pirq

Signed-off-by: Stefano Stabellini <stefano.stabellini@xxxxxxxxxxxxx>
---


diff -r 9751bc49639e -r f9bb0bbea7c2 xen/arch/x86/irq.c
--- a/xen/arch/x86/irq.c        Thu May 12 16:42:00 2011 +0100
+++ b/xen/arch/x86/irq.c        Thu May 12 16:42:54 2011 +0100
@@ -1955,7 +1955,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


 


Rackspace

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