Author: bonefish Date: 2010-05-01 20:31:12 +0200 (Sat, 01 May 2010) New Revision: 36570 Changeset: http://dev.haiku-os.org/changeset/36570/haiku Modified: haiku/trunk/src/system/kernel/arch/x86/arch_vm.cpp Log: arch_vm_supports_protection(): Fixed broken check. Modified: haiku/trunk/src/system/kernel/arch/x86/arch_vm.cpp =================================================================== --- haiku/trunk/src/system/kernel/arch/x86/arch_vm.cpp 2010-05-01 18:25:33 UTC (rev 36569) +++ haiku/trunk/src/system/kernel/arch/x86/arch_vm.cpp 2010-05-01 18:31:12 UTC (rev 36570) @@ -667,8 +667,9 @@ // 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; }