From: Joerg Roedel Date: Thu, 4 Dec 2008 15:44:31 +0000 (+0100) Subject: AMD IOMMU: fix loop counter in free_pagetable function X-Git-Tag: v2.6.28-rc8~42^2~4 X-Git-Url: http://pilppa.com/gitweb/?a=commitdiff_plain;h=3cc3d84bffbd93bdb671ac7961b12cd98fbb9266;p=linux-2.6-omap-h63xx.git AMD IOMMU: fix loop counter in free_pagetable function Impact: bugfix Signed-off-by: Joerg Roedel --- diff --git a/arch/x86/kernel/amd_iommu.c b/arch/x86/kernel/amd_iommu.c index 67970a8c2ee..0637e65ca0c 100644 --- a/arch/x86/kernel/amd_iommu.c +++ b/arch/x86/kernel/amd_iommu.c @@ -600,7 +600,7 @@ static void dma_ops_free_pagetable(struct dma_ops_domain *dma_dom) continue; p2 = IOMMU_PTE_PAGE(p1[i]); - for (j = 0; j < 512; ++i) { + for (j = 0; j < 512; ++j) { if (!IOMMU_PTE_PRESENT(p2[j])) continue; p3 = IOMMU_PTE_PAGE(p2[j]);