From bb19afc7c7b0c051d0c78addeea7ac70e36f2de7 Mon Sep 17 00:00:00 2001 From: Richard Braun Date: Wed, 21 Nov 2018 20:47:54 +0100 Subject: kern/turnstile: fix assertion Commit 5f202c9f744a5d9c5b751038edd2379b3d244227 reworked the way some assertions were performed, and introduced a mistake in an assertion in the turnstile module. --- kern/turnstile.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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); } -- cgit v1.2.3