summaryrefslogtreecommitdiff
path: root/sys/dev/kcov.c
diff options
context:
space:
mode:
authoranton <anton@cvs.openbsd.org>2020-08-30 13:19:45 +0000
committeranton <anton@cvs.openbsd.org>2020-08-30 13:19:45 +0000
commitaa2745e03594d3c7f954ed49b7bc41ae53a89f04 (patch)
tree8476d5eaa6d0bc1cc9bb83e0b1d4ddbf94e27aff /sys/dev/kcov.c
parent37aee71f511720fca80dcb1099de57ac0ab26da6 (diff)
add missing wakeup for the unlikely dying case
Diffstat (limited to 'sys/dev/kcov.c')
-rw-r--r--sys/dev/kcov.c4
1 files changed, 3 insertions, 1 deletions
diff --git a/sys/dev/kcov.c b/sys/dev/kcov.c
index 4fa9356d8c5..2e795b80323 100644
--- a/sys/dev/kcov.c
+++ b/sys/dev/kcov.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: kcov.c,v 1.27 2020/08/30 13:18:10 anton Exp $ */
+/* $OpenBSD: kcov.c,v 1.28 2020/08/30 13:19:44 anton Exp $ */
/*
* Copyright (c) 2018 Anton Lindqvist <anton@openbsd.org>
@@ -717,6 +717,8 @@ kr_free(struct kcov_remote *kr)
kr->kr_kd->kd_kr = NULL;
kr->kr_kd = NULL;
TAILQ_REMOVE(&kr_list, kr, kr_entry);
+ /* Notify thread(s) wating in kcov_remote_register(). */
+ wakeup(kr);
pool_put(&kr_pool, kr);
}