diff options
Diffstat (limited to 'arch/s390/include/asm/pgtable.h')
-rw-r--r-- | arch/s390/include/asm/pgtable.h | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/arch/s390/include/asm/pgtable.h b/arch/s390/include/asm/pgtable.h index 9b60a36c348d..2204400d0bd5 100644 --- a/arch/s390/include/asm/pgtable.h +++ b/arch/s390/include/asm/pgtable.h | |||
@@ -748,7 +748,9 @@ static inline void pgste_set_key(pte_t *ptep, pgste_t pgste, pte_t entry) | |||
748 | 748 | ||
749 | static inline void pgste_set_pte(pte_t *ptep, pte_t entry) | 749 | static inline void pgste_set_pte(pte_t *ptep, pte_t entry) |
750 | { | 750 | { |
751 | if (!MACHINE_HAS_ESOP && (pte_val(entry) & _PAGE_WRITE)) { | 751 | if (!MACHINE_HAS_ESOP && |
752 | (pte_val(entry) & _PAGE_PRESENT) && | ||
753 | (pte_val(entry) & _PAGE_WRITE)) { | ||
752 | /* | 754 | /* |
753 | * Without enhanced suppression-on-protection force | 755 | * Without enhanced suppression-on-protection force |
754 | * the dirty bit on for all writable ptes. | 756 | * the dirty bit on for all writable ptes. |