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:
@@ -667,8 +667,9 @@ arch_vm_supports_protection(uint32 protection)
|
|||||||
// other way around is not supported either, we don't care in this case
|
// other way around is not supported either, we don't care in this case
|
||||||
// and give the kernel full access.
|
// and give the kernel full access.
|
||||||
if ((protection & (B_READ_AREA | B_WRITE_AREA)) == B_READ_AREA
|
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 false;
|
||||||
|
}
|
||||||
|
|
||||||
return true;
|
return true;
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user