1
Fork 0
mirror of https://github.com/RGBCube/serenity synced 2025-07-25 16:27:35 +00:00

Kernel: Fix some crashes due to missing locks

We need to hold m_lock when accessing m_regions.
This commit is contained in:
Tom 2020-08-01 14:41:54 -06:00 committed by Andreas Kling
parent 728de56481
commit 5bbf6ed46b
2 changed files with 17 additions and 5 deletions

View file

@ -680,7 +680,7 @@ private:
size_t m_master_tls_alignment { 0 };
Lock m_big_lock { "Process" };
SpinLock<u32> m_lock;
mutable SpinLock<u32> m_lock;
u64 m_alarm_deadline { 0 };