sparseirq: fix intr-remap with dyn_array/nr_irqs changes]
commit7ddfb650c7ef7a33a5ef11c0fdf5b3d837a47dba
authorSuresh Siddha <suresh.b.siddha@intel.com>
Thu, 21 Aug 2008 00:22:51 +0000 (20 17:22 -0700)
committerIngo Molnar <mingo@elte.hu>
Thu, 16 Oct 2008 14:52:59 +0000 (16 16:52 +0200)
tree08095ab77f9ca60ccb8b3c4d870e0ddcd9c54f0b
parent0c425cec64eb0c0d0dd7037c21a25585cbe3636c
sparseirq: fix intr-remap with dyn_array/nr_irqs changes]

In irq_2_iommu_alloc() and set_irte_irq(), irq_to_desc or
irq_2_iommu pointers may not be allocated. So use the routines
which will allocate them if they are not already allocated.

Signed-off-by: Suresh Siddha <suresh.b.siddha@intel.com>
Signed-off-by: Ingo Molnar <mingo@elte.hu>
drivers/pci/intr_remapping.c