summaryrefslogtreecommitdiffstats
path: root/kernel/arch/x86/xen/mmu.c
diff options
context:
space:
mode:
Diffstat (limited to 'kernel/arch/x86/xen/mmu.c')
-rw-r--r--kernel/arch/x86/xen/mmu.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/kernel/arch/x86/xen/mmu.c b/kernel/arch/x86/xen/mmu.c
index cb5e266a8..1e56ff583 100644
--- a/kernel/arch/x86/xen/mmu.c
+++ b/kernel/arch/x86/xen/mmu.c
@@ -1113,7 +1113,7 @@ static void __init xen_cleanhighmap(unsigned long vaddr,
/* NOTE: The loop is more greedy than the cleanup_highmap variant.
* We include the PMD passed in on _both_ boundaries. */
- for (; vaddr <= vaddr_end && (pmd < (level2_kernel_pgt + PAGE_SIZE));
+ for (; vaddr <= vaddr_end && (pmd < (level2_kernel_pgt + PTRS_PER_PMD));
pmd++, vaddr += PMD_SIZE) {
if (pmd_none(*pmd))
continue;