diff options
author | Richard Braun <rbraun@sceen.net> | 2018-11-21 20:47:54 +0100 |
---|---|---|
committer | Richard Braun <rbraun@sceen.net> | 2018-11-21 20:47:54 +0100 |
commit | bb19afc7c7b0c051d0c78addeea7ac70e36f2de7 (patch) | |
tree | 30d67f0a327a1fd06222035ffd10b79687e6091e | |
parent | 8835eb9113c3ce655b0d1040c4d6807bba6e1d82 (diff) |
kern/turnstile: fix assertion
Commit 5f202c9f744a5d9c5b751038edd2379b3d244227 reworked the way some
assertions were performed, and introduced a mistake in an assertion
in the turnstile module.
-rw-r--r-- | kern/turnstile.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/kern/turnstile.c b/kern/turnstile.c index 9d781c40..29073615 100644 --- a/kern/turnstile.c +++ b/kern/turnstile.c @@ -654,7 +654,7 @@ turnstile_return(struct turnstile *turnstile) spinlock_unlock(&bucket->lock); - assert(turnstile_init_state_valid(turnstile)); + assert(turnstile_init_state_valid(free_turnstile)); thread_turnstile_return(free_turnstile); } |