Merge branch 'linus' into cpus4096
Conflicts: drivers/acpi/processor_throttling.c Signed-off-by: Ingo Molnar <mingo@elte.hu>
This commit is contained in:
@@ -72,8 +72,9 @@ pgprot_t protection_map[16] = {
|
||||
|
||||
pgprot_t vm_get_page_prot(unsigned long vm_flags)
|
||||
{
|
||||
return protection_map[vm_flags &
|
||||
(VM_READ|VM_WRITE|VM_EXEC|VM_SHARED)];
|
||||
return __pgprot(pgprot_val(protection_map[vm_flags &
|
||||
(VM_READ|VM_WRITE|VM_EXEC|VM_SHARED)]) |
|
||||
pgprot_val(arch_vm_get_page_prot(vm_flags)));
|
||||
}
|
||||
EXPORT_SYMBOL(vm_get_page_prot);
|
||||
|
||||
|
@@ -237,7 +237,7 @@ sys_mprotect(unsigned long start, size_t len, unsigned long prot)
|
||||
end = start + len;
|
||||
if (end <= start)
|
||||
return -ENOMEM;
|
||||
if (prot & ~(PROT_READ | PROT_WRITE | PROT_EXEC | PROT_SEM))
|
||||
if (!arch_validate_prot(prot))
|
||||
return -EINVAL;
|
||||
|
||||
reqprot = prot;
|
||||
|
Reference in New Issue
Block a user