Kernel: Lock should keep a reference to whoever holds the lock

Fixes a crash reported in #3990
This commit is contained in:
Tom 2020-11-29 17:09:14 -07:00 committed by Andreas Kling
commit 3bda458735
Notes: sideshowbarker 2024-07-19 01:08:47 +09:00
2 changed files with 2 additions and 2 deletions

View file

@ -72,7 +72,7 @@ private:
// the lock is unlocked, it just means we don't know which threads hold it.
// When locked exclusively, this is always the one thread that holds the
// lock.
Thread* m_holder { nullptr };
RefPtr<Thread> m_holder;
};
class Locker {