diff options
-rw-r--r-- | lib/klist.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/klist.c b/lib/klist.c index 0874e41..358a368a 100644 --- a/lib/klist.c +++ b/lib/klist.c @@ -193,10 +193,10 @@ static void klist_release(struct kref *kref) if (waiter->node != n) continue; + list_del(&waiter->list); waiter->woken = 1; mb(); wake_up_process(waiter->process); - list_del(&waiter->list); } spin_unlock(&klist_remove_lock); knode_set_klist(n, NULL); |