From 40f1dd8443cfa756b74952cadcc40a2ad64cdf44 Mon Sep 17 00:00:00 2001 From: Ingo Weinhold Date: Sat, 1 May 2010 18:31:12 +0000 Subject: [PATCH] arch_vm_supports_protection(): Fixed broken check. git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@36570 a95241bf-73f2-0310-859d-f6bbb57e9c96 --- src/system/kernel/arch/x86/arch_vm.cpp | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/system/kernel/arch/x86/arch_vm.cpp b/src/system/kernel/arch/x86/arch_vm.cpp index 1c95c1847d..6bdb4a902c 100644 --- a/src/system/kernel/arch/x86/arch_vm.cpp +++ b/src/system/kernel/arch/x86/arch_vm.cpp @@ -667,8 +667,9 @@ arch_vm_supports_protection(uint32 protection) // other way around is not supported either, we don't care in this case // and give the kernel full access. if ((protection & (B_READ_AREA | B_WRITE_AREA)) == B_READ_AREA - && protection & B_KERNEL_WRITE_AREA) + && (protection & B_KERNEL_WRITE_AREA) != 0) { return false; + } return true; }