summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-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);
}