summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authoraaron <aaron@openbsd.org>2001-06-09 01:56:07 +0000
committeraaron <aaron@openbsd.org>2001-06-09 01:56:07 +0000
commit9b1395d5951f9c26f38a8fca410197c5bb51f45d (patch)
tree4e4294b17209d3bc8da87e146960ab4ab4c53c7b
parentRemove sc_ready from the softc, we can just test sc_events.io instead. (diff)
downloadwireguard-openbsd-9b1395d5951f9c26f38a8fca410197c5bb51f45d.tar.xz
wireguard-openbsd-9b1395d5951f9c26f38a8fca410197c5bb51f45d.zip
Set sc_dying in wskbd_detach, otherwise it's pointless.
-rw-r--r--sys/dev/wscons/wskbd.c6
1 files changed, 5 insertions, 1 deletions
diff --git a/sys/dev/wscons/wskbd.c b/sys/dev/wscons/wskbd.c
index e5a375fefe2..c4c0156bacd 100644
--- a/sys/dev/wscons/wskbd.c
+++ b/sys/dev/wscons/wskbd.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: wskbd.c,v 1.20 2001/06/09 01:43:51 aaron Exp $ */
+/* $OpenBSD: wskbd.c,v 1.21 2001/06/09 01:56:07 aaron Exp $ */
/* $NetBSD: wskbd.c,v 1.38 2000/03/23 07:01:47 thorpej Exp $ */
/*
@@ -527,7 +527,11 @@ wskbd_detach(self, flags)
int s;
#if NWSMUX > 0
int mux;
+#endif
+
+ sc->sc_dying = 1;
+#if NWSMUX > 0
mux = sc->sc_dv.dv_cfdata->wskbddevcf_mux;
if (mux != WSKBDDEVCF_MUX_DEFAULT)
wsmux_detach(mux, &sc->sc_dv);