summaryrefslogtreecommitdiff
path: root/kern
diff options
context:
space:
mode:
authorRichard Braun <rbraun@sceen.net>2018-11-21 20:47:54 +0100
committerRichard Braun <rbraun@sceen.net>2018-11-21 20:47:54 +0100
commitbb19afc7c7b0c051d0c78addeea7ac70e36f2de7 (patch)
tree30d67f0a327a1fd06222035ffd10b79687e6091e /kern
parent8835eb9113c3ce655b0d1040c4d6807bba6e1d82 (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.
Diffstat (limited to 'kern')
-rw-r--r--kern/turnstile.c2
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);
}