ia64/xen-unstable

changeset 19706:49e8816db57a

x86: pin_2_irq[].pin should be initialised to -1.

Signed-off-by: Keir Fraser <keir.fraser@citrix.com>
author Keir Fraser <keir.fraser@citrix.com>
date Wed Jun 03 12:35:25 2009 +0100 (2009-06-03)
parents 4e22d660ece3
children 07cf79dfb59c
files xen/arch/x86/io_apic.c
line diff
     1.1 --- a/xen/arch/x86/io_apic.c	Wed Jun 03 11:20:38 2009 +0100
     1.2 +++ b/xen/arch/x86/io_apic.c	Wed Jun 03 12:35:25 2009 +0100
     1.3 @@ -967,6 +967,8 @@ static void __init enable_IO_APIC(void)
     1.4      /* Initialise dynamic irq_2_pin free list. */
     1.5      irq_2_pin = xmalloc_array(struct irq_pin_list, PIN_MAP_SIZE);
     1.6      memset(irq_2_pin, 0, nr_irqs * sizeof(*irq_2_pin));
     1.7 +    for (i = 0; i < PIN_MAP_SIZE; i++)
     1.8 +        irq_2_pin[i].pin = -1;
     1.9      for (i = irq_2_pin_free_entry = nr_irqs; i < PIN_MAP_SIZE; i++)
    1.10          irq_2_pin[i].next = i + 1;
    1.11