projects
/
cascardo
/
linux.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
x86/xen: fix upper bound of pmd loop in xen_cleanhighmap()
[cascardo/linux.git]
/
arch
/
x86
/
xen
/
mmu.c
diff --git
a/arch/x86/xen/mmu.c
b/arch/x86/xen/mmu.c
index
478a2de
..
2693b7e
100644
(file)
--- a/
arch/x86/xen/mmu.c
+++ b/
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. */
/* 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 + P
AGE_SIZE
));
+ for (; vaddr <= vaddr_end && (pmd < (level2_kernel_pgt + P
TRS_PER_PMD
));
pmd++, vaddr += PMD_SIZE) {
if (pmd_none(*pmd))
continue;
pmd++, vaddr += PMD_SIZE) {
if (pmd_none(*pmd))
continue;