Skip to content

Commit

Permalink
x86, intr-remapping: fix free_irte() to clear all the IRTE entries
Browse files Browse the repository at this point in the history
Impact: fix interrupt table entry leak

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>
Signed-off-by: H. Peter Anvin <hpa@linux.intel.com>
  • Loading branch information
Suresh Siddha authored and H. Peter Anvin committed Mar 17, 2009
1 parent 1531a6a commit 2e93456
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion drivers/pci/intr_remapping.c
Original file line number Diff line number Diff line change
Expand Up @@ -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);
}

Expand Down

0 comments on commit 2e93456

Please sign in to comment.