summaryrefslogtreecommitdiffstats
path: root/sys/dev/kcov.c
diff options
context:
space:
mode:
authoranton <anton@openbsd.org>2020-08-30 13:19:44 +0000
committeranton <anton@openbsd.org>2020-08-30 13:19:44 +0000
commit1fbdca8f1b2e500e267dd307a36937efea3b2d1d (patch)
tree63d3b290bb55bab0cc4a76fab1381fcaf5e91b9f /sys/dev/kcov.c
parentuse unique wait messages with msleep_nsec() (diff)
downloadwireguard-openbsd-1fbdca8f1b2e500e267dd307a36937efea3b2d1d.tar.xz
wireguard-openbsd-1fbdca8f1b2e500e267dd307a36937efea3b2d1d.zip
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);
}