Skip to content

Commit

Permalink
Kernel: Remove shadowing member variable from FileDescriptionBlocker
Browse files Browse the repository at this point in the history
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
  • Loading branch information
tomuta authored and awesomekling committed May 5, 2021
1 parent 37903db commit 72a61fe
Showing 1 changed file with 0 additions and 1 deletion.
1 change: 0 additions & 1 deletion Kernel/Thread.h
Original file line number Diff line number Diff line change
Expand Up @@ -559,7 +559,6 @@ class Thread
const BlockFlags m_flags;
BlockFlags& m_unblocked_flags;
bool m_did_unblock { false };
bool m_should_block { true };
};

class AcceptBlocker final : public FileDescriptionBlocker {
Expand Down

0 comments on commit 72a61fe

Please sign in to comment.