diff options
Diffstat (limited to 'drivers/pci')
-rw-r--r-- | drivers/pci/intel-iommu.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/pci/intel-iommu.c b/drivers/pci/intel-iommu.c index 40ce5a03f18f..35bdd2a06caa 100644 --- a/drivers/pci/intel-iommu.c +++ b/drivers/pci/intel-iommu.c | |||
@@ -815,7 +815,7 @@ static void dma_pte_free_pagetable(struct dmar_domain *domain, | |||
815 | if (tmp + level_size(level) - 1 > last_pfn) | 815 | if (tmp + level_size(level) - 1 > last_pfn) |
816 | return; | 816 | return; |
817 | 817 | ||
818 | while (tmp <= last_pfn) { | 818 | while (tmp + level_size(level) - 1 <= last_pfn) { |
819 | pte = dma_pfn_level_pte(domain, tmp, level); | 819 | pte = dma_pfn_level_pte(domain, tmp, level); |
820 | if (pte) { | 820 | if (pte) { |
821 | free_pgtable_page( | 821 | free_pgtable_page( |