diff options
author | Andreas Kling <kling@serenityos.org> | 2022-02-03 16:10:10 +0100 |
---|---|---|
committer | Andreas Kling <kling@serenityos.org> | 2022-02-03 16:11:26 +0100 |
commit | a81aebfd6e75c40cc73ef7d90b14f8c6739505bf (patch) | |
tree | b0a0963c679a8ab32409b2e493f42ed70e1c6c5e | |
parent | e86ab570788170a1e1364b7d3f75f3c848999388 (diff) | |
download | serenity-a81aebfd6e75c40cc73ef7d90b14f8c6739505bf.zip |
Kernel: Remove unnecessary mutex for ubsan-is-deadly ProcFS node
-rw-r--r-- | Kernel/GlobalProcessExposed.cpp | 14 |
1 files changed, 3 insertions, 11 deletions
diff --git a/Kernel/GlobalProcessExposed.cpp b/Kernel/GlobalProcessExposed.cpp index eecf730818..8ab58cbcf9 100644 --- a/Kernel/GlobalProcessExposed.cpp +++ b/Kernel/GlobalProcessExposed.cpp @@ -263,20 +263,12 @@ private: class ProcFSUBSanDeadly : public ProcFSSystemBoolean { public: static NonnullRefPtr<ProcFSUBSanDeadly> must_create(const ProcFSSystemDirectory&); - virtual bool value() const override - { - MutexLocker locker(m_lock); - return AK::UBSanitizer::g_ubsan_is_deadly; - } - virtual void set_value(bool new_value) override - { - MutexLocker locker(m_lock); - AK::UBSanitizer::g_ubsan_is_deadly = new_value; - } + + virtual bool value() const override { return AK::UBSanitizer::g_ubsan_is_deadly; } + virtual void set_value(bool new_value) override { AK::UBSanitizer::g_ubsan_is_deadly = new_value; } private: ProcFSUBSanDeadly(); - mutable Mutex m_lock; }; class ProcFSCapsLockRemap : public ProcFSSystemBoolean { |