mirror of
https://github.com/RGBCube/serenity
synced 2025-07-27 05:07:45 +00:00
Kernel: Fix bug where mprotect() would ignore setting PROT_WRITE
A typo in Region::set_writable() caused us to update the readable flag rather than the writable flag.
This commit is contained in:
parent
64e77c262e
commit
7dc9c90f83
1 changed files with 1 additions and 1 deletions
|
@ -108,7 +108,7 @@ public:
|
||||||
void set_writable(bool b)
|
void set_writable(bool b)
|
||||||
{
|
{
|
||||||
if (b)
|
if (b)
|
||||||
m_access |= Access::Read;
|
m_access |= Access::Write;
|
||||||
else
|
else
|
||||||
m_access &= ~Access::Write;
|
m_access &= ~Access::Write;
|
||||||
}
|
}
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue