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:
parent
728de56481
commit
5bbf6ed46b
2 changed files with 17 additions and 5 deletions
|
@ -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 };
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue