From 72a61fe13782cd8c1eaad74b6661809d27df55e7 Mon Sep 17 00:00:00 2001 From: Tom Date: Wed, 5 May 2021 10:11:53 -0600 Subject: [PATCH] Kernel: Remove shadowing member variable from FileDescriptionBlocker FileDescriptionBlocker::m_should_block was shadowing the parent's FileBlocker::m_should_block variable, which would cause should_block() to return the wrong value. Found by @gunnarbeutner --- Kernel/Thread.h | 1 - 1 file changed, 1 deletion(-) diff --git a/Kernel/Thread.h b/Kernel/Thread.h index bdb72efd2f..446b34eda8 100644 --- a/Kernel/Thread.h +++ b/Kernel/Thread.h @@ -559,7 +559,6 @@ public: const BlockFlags m_flags; BlockFlags& m_unblocked_flags; bool m_did_unblock { false }; - bool m_should_block { true }; }; class AcceptBlocker final : public FileDescriptionBlocker {