diff options
author | Stefano Stabellini <stefano.stabellini@eu.citrix.com> | 2011-05-12 16:42:54 +0100 |
---|---|---|
committer | Stefano Stabellini <stefano.stabellini@eu.citrix.com> | 2011-05-12 16:42:54 +0100 |
commit | 29d533f5f5e9e6d33c28e31408aeb566fa37f1c2 (patch) | |
tree | 55b931f2f91bff29e863c985414c2f06232d43d9 /xen/arch/x86/irq.c | |
parent | cce9aba653e4be7dce83e0887e9a547a7440d0a5 (diff) | |
download | xen-29d533f5f5e9e6d33c28e31408aeb566fa37f1c2.tar.gz xen-29d533f5f5e9e6d33c28e31408aeb566fa37f1c2.tar.bz2 xen-29d533f5f5e9e6d33c28e31408aeb566fa37f1c2.zip |
x86: Check for valid pirq values in hvm_domain_use_pirq
Signed-off-by: Stefano Stabellini <stefano.stabellini@eu.citrix.com>
Diffstat (limited to 'xen/arch/x86/irq.c')
-rw-r--r-- | xen/arch/x86/irq.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/xen/arch/x86/irq.c b/xen/arch/x86/irq.c index d6447c778e..43aa1a9568 100644 --- a/xen/arch/x86/irq.c +++ b/xen/arch/x86/irq.c @@ -1955,7 +1955,7 @@ int hvm_domain_use_pirq(struct domain *d, int pirq) { int emuirq; - if ( !is_hvm_domain(d) ) + if ( !is_hvm_domain(d) || pirq < 0 ) return 0; emuirq = domain_pirq_to_emuirq(d, pirq); |