diff options
Diffstat (limited to 'mm/mmap.c')
-rw-r--r-- | mm/mmap.c | 5 |
1 files changed, 3 insertions, 2 deletions
@@ -72,8 +72,9 @@ pgprot_t protection_map[16] = { | |||
72 | 72 | ||
73 | pgprot_t vm_get_page_prot(unsigned long vm_flags) | 73 | pgprot_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 | } |
78 | EXPORT_SYMBOL(vm_get_page_prot); | 79 | EXPORT_SYMBOL(vm_get_page_prot); |
79 | 80 | ||