1
Fork 0
mirror of https://github.com/RGBCube/serenity synced 2025-07-27 12:57:35 +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:
Andreas Kling 2019-12-02 18:15:36 +01:00
parent 64e77c262e
commit 7dc9c90f83

View file

@ -108,7 +108,7 @@ public:
void set_writable(bool b)
{
if (b)
m_access |= Access::Read;
m_access |= Access::Write;
else
m_access &= ~Access::Write;
}