commit | 3cc3d84bffbd93bdb671ac7961b12cd98fbb9266 | [log] [tgz] |
---|---|---|
author | Joerg Roedel <joerg.roedel@amd.com> | Thu Dec 04 16:44:31 2008 +0100 |
committer | Joerg Roedel <joerg.roedel@amd.com> | Mon Dec 08 14:58:19 2008 +0100 |
tree | 0afcdeee8854d1556dafa7f20fbda67f6bf25e0a | |
parent | bb9d4ff80bc032d7961815c2ff5eaf458ae3adff [diff] |
AMD IOMMU: fix loop counter in free_pagetable function Impact: bugfix Signed-off-by: Joerg Roedel <joerg.roedel@amd.com>
diff --git a/arch/x86/kernel/amd_iommu.c b/arch/x86/kernel/amd_iommu.c index 67970a8..0637e65 100644 --- a/arch/x86/kernel/amd_iommu.c +++ b/arch/x86/kernel/amd_iommu.c
@@ -600,7 +600,7 @@ 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]);