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
This commit is contained in:
Tom 2021-05-05 10:11:53 -06:00 committed by Andreas Kling
parent 37903db2b4
commit 72a61fe137
Notes: sideshowbarker 2024-07-18 18:41:30 +09:00

View file

@ -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 {