aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorKeir Fraser <keir.fraser@citrix.com>2010-06-18 14:24:05 +0100
committerKeir Fraser <keir.fraser@citrix.com>2010-06-18 14:24:05 +0100
commit91fdb82086dd62ba6952234a99f10fc23b873465 (patch)
tree9bb7d168b18be3fc333016508af8bd089f7ec3fe
parent53f673e609772ba2cc9b20a06cdb9cb8b55161b0 (diff)
downloadxen-91fdb82086dd62ba6952234a99f10fc23b873465.tar.gz
xen-91fdb82086dd62ba6952234a99f10fc23b873465.tar.bz2
xen-91fdb82086dd62ba6952234a99f10fc23b873465.zip
x86: return value of domain_pirq_to_irq() is signed
That value can, for forcibly unbound PIRQs, validly be negative, and for the respective check to catch those cases (and prevent using these negative values as array index), the respective variables must be of signed type. Signed-off-by: Jan Beulich <jbeulich@novell.com> xen-unstable changeset: 21620:b0f7f710f512 xen-unstable date: Tue Jun 15 13:21:03 2010 +0100
-rw-r--r--xen/arch/x86/irq.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/xen/arch/x86/irq.c b/xen/arch/x86/irq.c
index 36ad05f631..a4b8acb0b3 100644
--- a/xen/arch/x86/irq.c
+++ b/xen/arch/x86/irq.c
@@ -879,7 +879,7 @@ static void __do_IRQ_guest(int irq)
struct irq_desc *domain_spin_lock_irq_desc(
struct domain *d, int pirq, unsigned long *pflags)
{
- unsigned int irq;
+ int irq;
unsigned long flags;
struct irq_desc *desc;
@@ -1046,7 +1046,7 @@ extern int ioapic_ack_new;
static int pirq_acktype(struct domain *d, int pirq)
{
struct irq_desc *desc;
- unsigned int irq;
+ int irq;
irq = domain_pirq_to_irq(d, pirq);
if ( irq <= 0 )