]> git.karo-electronics.de Git - linux-beck.git/blobdiff - drivers/iommu/amd_iommu_v2.c
Merge branch 'CVE-2014-7975' of git://git.kernel.org/pub/scm/linux/kernel/git/luto...
[linux-beck.git] / drivers / iommu / amd_iommu_v2.c
index 5f578e850fc5fa29c44e02000d07622b5610aa45..90d734bbf467a2cec462282191f64c8f2131c1ae 100644 (file)
@@ -402,9 +402,11 @@ static void __mn_flush_page(struct mmu_notifier *mn,
 
 static int mn_clear_flush_young(struct mmu_notifier *mn,
                                struct mm_struct *mm,
-                               unsigned long address)
+                               unsigned long start,
+                               unsigned long end)
 {
-       __mn_flush_page(mn, address);
+       for (; start < end; start += PAGE_SIZE)
+               __mn_flush_page(mn, start);
 
        return 0;
 }