diff options
-rw-r--r-- | arch/x86/xen/mmu.c | 8 |
1 files changed, 5 insertions, 3 deletions
diff --git a/arch/x86/xen/mmu.c b/arch/x86/xen/mmu.c index 6e27979506c1..21058ad1e5e3 100644 --- a/arch/x86/xen/mmu.c +++ b/arch/x86/xen/mmu.c | |||
@@ -1488,10 +1488,12 @@ static __init pte_t mask_rw_pte(pte_t *ptep, pte_t pte) | |||
1488 | /* | 1488 | /* |
1489 | * If the new pfn is within the range of the newly allocated | 1489 | * If the new pfn is within the range of the newly allocated |
1490 | * kernel pagetable, and it isn't being mapped into an | 1490 | * kernel pagetable, and it isn't being mapped into an |
1491 | * early_ioremap fixmap slot, make sure it is RO. | 1491 | * early_ioremap fixmap slot as a freshly allocated page, make sure |
1492 | * it is RO. | ||
1492 | */ | 1493 | */ |
1493 | if (!is_early_ioremap_ptep(ptep) && | 1494 | if (((!is_early_ioremap_ptep(ptep) && |
1494 | pfn >= pgt_buf_start && pfn < pgt_buf_end) | 1495 | pfn >= pgt_buf_start && pfn < pgt_buf_end)) || |
1496 | (is_early_ioremap_ptep(ptep) && pfn != (pgt_buf_end - 1))) | ||
1495 | pte = pte_wrprotect(pte); | 1497 | pte = pte_wrprotect(pte); |
1496 | 1498 | ||
1497 | return pte; | 1499 | return pte; |