Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fishy use of DSTATE_RMASK #2

Open
OznOg opened this issue Apr 14, 2019 · 0 comments
Open

Fishy use of DSTATE_RMASK #2

OznOg opened this issue Apr 14, 2019 · 0 comments

Comments

@OznOg
Copy link

OznOg commented Apr 14, 2019

DSTATE_RMASK seems to be a mask but is sometime used as a boolean:

kernel/sched_posix.c: if (!(current->state && DSTATE_RMASK))

This test is probably wrong, should probably be binary and &

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant