Stefano Stabellini
2011-May-12 14:29 UTC
[Xen-devel] [PATCH] xen: Check for valid pirq values in hvm_domain_use_pirq
Check for valid pirq values in hvm_domain_use_pirq. This patch should also be backported to 4.1. Signed-off-by: Stefano Stabellini <stefano.stabellini@eu.citrix.com> diff -r 7955bb98ee9d xen/arch/x86/irq.c --- a/xen/arch/x86/irq.c Thu May 12 14:13:29 2011 +0000 +++ b/xen/arch/x86/irq.c Thu May 12 14:25:40 2011 +0000 @@ -1955,7 +1955,7 @@ int hvm_domain_use_pirq(struct domain *d { int emuirq; - if ( !is_hvm_domain(d) ) + if ( !is_hvm_domain(d) || pirq < 0 ) return 0; emuirq = domain_pirq_to_emuirq(d, pirq); _______________________________________________ Xen-devel mailing list Xen-devel@lists.xensource.com http://lists.xensource.com/xen-devel