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; }