[patch 06/13] intr-remapping: fix free_irte() to clear all the IRTE entries

Suresh Siddha
2009-03-17T00:28:47Z

[-- Attachment #1: fix_free_irte.patch --]
[-- Type: text/plain, Size: 641 bytes --]

Fix the typo which was not clearing all the interrupt remapping table
entries corresponding to an irq.

Signed-off-by: Suresh Siddha <suresh.b.siddha@intel.com>
---

Index: tip/drivers/pci/intr_remapping.c
===================================================================
--- tip.orig/drivers/pci/intr_remapping.c
+++ tip/drivers/pci/intr_remapping.c
@@ -386,7 +386,7 @@ int free_irte(int irq)

if (!irq_iommu->sub_handle) {
for (i = 0; i < (1 << irq_iommu->irte_mask); i++)
- set_64bit((unsigned long *)irte, 0);
+ set_64bit((unsigned long *)(irte + i), 0);
rc = qi_flush_iec(iommu, index, irq_iommu->irte_mask);
}

--