forked from luck/tmp_suning_uos_patched
AMD IOMMU: fix loop counter in free_pagetable function
Impact: bugfix Signed-off-by: Joerg Roedel <joerg.roedel@amd.com>
This commit is contained in:
parent
bb9d4ff80b
commit
3cc3d84bff
@ -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]);
|
||||
|
Loading…
Reference in New Issue
Block a user