diff options
author | Heiko Carstens <heiko.carstens@de.ibm.com> | 2016-05-19 10:25:30 -0400 |
---|---|---|
committer | Martin Schwidefsky <schwidefsky@de.ibm.com> | 2016-06-13 09:58:14 -0400 |
commit | 3e76ee99b095e5bee71165fda5edbe6b66b39700 (patch) | |
tree | 48a2b24b6fee363593b53d0d568b20a7e3a62401 /arch/s390/mm | |
parent | 5aa29975e81851b7d48cb79c0c95d95360bfd9a6 (diff) |
s390/mm: always use PAGE_KERNEL when mapping pages
Always use PAGE_KERNEL when re-enabling pages within the kernel
mapping due to debug pagealloc. Without using this pgprot value
pte_mkwrite() and pte_wrprotect() won't work on such mappings after an
unmap -> map cycle anymore.
Signed-off-by: Heiko Carstens <heiko.carstens@de.ibm.com>
Acked-by: Martin Schwidefsky <schwidefsky@de.ibm.com>
Signed-off-by: Martin Schwidefsky <schwidefsky@de.ibm.com>
Diffstat (limited to 'arch/s390/mm')
-rw-r--r-- | arch/s390/mm/pageattr.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/arch/s390/mm/pageattr.c b/arch/s390/mm/pageattr.c index f2a5c29a97e9..e67a8f712e19 100644 --- a/arch/s390/mm/pageattr.c +++ b/arch/s390/mm/pageattr.c | |||
@@ -138,7 +138,7 @@ void __kernel_map_pages(struct page *page, int numpages, int enable) | |||
138 | nr = min(numpages - i, nr); | 138 | nr = min(numpages - i, nr); |
139 | if (enable) { | 139 | if (enable) { |
140 | for (j = 0; j < nr; j++) { | 140 | for (j = 0; j < nr; j++) { |
141 | pte_val(*pte) = __pa(address); | 141 | pte_val(*pte) = address | pgprot_val(PAGE_KERNEL); |
142 | address += PAGE_SIZE; | 142 | address += PAGE_SIZE; |
143 | pte++; | 143 | pte++; |
144 | } | 144 | } |