aboutsummaryrefslogtreecommitdiffstats
path: root/mm/mmap.c
diff options
context:
space:
mode:
Diffstat (limited to 'mm/mmap.c')
-rw-r--r--mm/mmap.c5
1 files changed, 3 insertions, 2 deletions
diff --git a/mm/mmap.c b/mm/mmap.c
index 3354fdd83d4b..1d102b956fd8 100644
--- a/mm/mmap.c
+++ b/mm/mmap.c
@@ -72,8 +72,9 @@ pgprot_t protection_map[16] = {
72 72
73pgprot_t vm_get_page_prot(unsigned long vm_flags) 73pgprot_t vm_get_page_prot(unsigned long vm_flags)
74{ 74{
75 return protection_map[vm_flags & 75 return __pgprot(pgprot_val(protection_map[vm_flags &
76 (VM_READ|VM_WRITE|VM_EXEC|VM_SHARED)]; 76 (VM_READ|VM_WRITE|VM_EXEC|VM_SHARED)]) |
77 pgprot_val(arch_vm_get_page_prot(vm_flags)));
77} 78}
78EXPORT_SYMBOL(vm_get_page_prot); 79EXPORT_SYMBOL(vm_get_page_prot);
79 80