diff options
| -rw-r--r-- | arch/mips/include/asm/pgtable.h | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/arch/mips/include/asm/pgtable.h b/arch/mips/include/asm/pgtable.h index f53816744d60..7d44e888134f 100644 --- a/arch/mips/include/asm/pgtable.h +++ b/arch/mips/include/asm/pgtable.h | |||
| @@ -633,7 +633,7 @@ static inline struct page *pmd_page(pmd_t pmd) | |||
| 633 | 633 | ||
| 634 | static inline pmd_t pmd_modify(pmd_t pmd, pgprot_t newprot) | 634 | static inline pmd_t pmd_modify(pmd_t pmd, pgprot_t newprot) |
| 635 | { | 635 | { |
| 636 | pmd_val(pmd) = (pmd_val(pmd) & _PAGE_CHG_MASK) | | 636 | pmd_val(pmd) = (pmd_val(pmd) & (_PAGE_CHG_MASK | _PAGE_HUGE)) | |
| 637 | (pgprot_val(newprot) & ~_PAGE_CHG_MASK); | 637 | (pgprot_val(newprot) & ~_PAGE_CHG_MASK); |
| 638 | return pmd; | 638 | return pmd; |
| 639 | } | 639 | } |
