x86/EFI: fix EFI_MEMORY_WP handling

Signed-off-by: Jan Beulich <jbeulich@suse.com>
Reviewed-by: Andrew Cooper <andrew.cooper3@citrix.com>
This commit is contained in:
Jan Beulich committed 2015-06-10 12:01:35 +02:00
1 parent d4300db3a0
commit af23e79f46
1 file changed
+1 -1
+1 -1
View File
@@ -1202,7 +1202,7 @@ void __init efi_init_memory(void)
}
if ( desc->Attribute & EFI_MEMORY_WP )
prot &= _PAGE_RW;
prot &= ~_PAGE_RW;
if ( desc->Attribute & EFI_MEMORY_XP )
prot |= _PAGE_NX;
Reference in new issue
Block a user
Blocking a user prevents them from interacting with repositories, such as opening or commenting on pull requests or issues. Learn more about blocking a user.