arch_vm_supports_protection(): Fixed broken check.

git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@36570 a95241bf-73f2-0310-859d-f6bbb57e9c96
This commit is contained in:
Ingo Weinhold 2010-05-01 18:31:12 +00:00
parent d52ea9c90e
commit 40f1dd8443
1 changed files with 2 additions and 1 deletions

View File

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