From: Michael S. Tsirkin Date: Wed, 23 Mar 2016 18:34:19 +0000 (+0200) Subject: x86/vt-d: Fix comment for dma_pte_free_pagetable() X-Git-Url: https://git.stricted.de/?a=commitdiff_plain;h=3d1a2442d2c08c872150db7a554647c06f6e864f;p=GitHub%2Fmoto-9609%2Fandroid_kernel_motorola_exynos9610.git x86/vt-d: Fix comment for dma_pte_free_pagetable() dma_pte_free_pagetable no longer depends on last level ptes being clear, it clears them itself. Fix up the comment to match. Cc: Jiang Liu Suggested-by: Alex Williamson Signed-off-by: Michael S. Tsirkin Signed-off-by: Joerg Roedel --- diff --git a/drivers/iommu/intel-iommu.c b/drivers/iommu/intel-iommu.c index a2e1b7f14df2..01005531891b 100644 --- a/drivers/iommu/intel-iommu.c +++ b/drivers/iommu/intel-iommu.c @@ -1143,7 +1143,7 @@ next: } while (!first_pte_in_page(++pte) && pfn <= last_pfn); } -/* free page table pages. last level pte should already be cleared */ +/* clear last level (leaf) ptes and free page table pages. */ static void dma_pte_free_pagetable(struct dmar_domain *domain, unsigned long start_pfn, unsigned long last_pfn)