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:
parent
d52ea9c90e
commit
40f1dd8443
|
@ -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;
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue