diff options
-rw-r--r-- | sys/dev/wscons/wskbd.c | 7 |
1 files changed, 6 insertions, 1 deletions
diff --git a/sys/dev/wscons/wskbd.c b/sys/dev/wscons/wskbd.c index dbd5b902dee..accd8e064f5 100644 --- a/sys/dev/wscons/wskbd.c +++ b/sys/dev/wscons/wskbd.c @@ -1,4 +1,4 @@ -/* $OpenBSD: wskbd.c,v 1.26 2001/09/30 05:49:58 mickey Exp $ */ +/* $OpenBSD: wskbd.c,v 1.27 2001/10/25 14:30:43 drahn Exp $ */ /* $NetBSD: wskbd.c,v 1.38 2000/03/23 07:01:47 thorpej Exp $ */ /* @@ -547,6 +547,11 @@ wskbd_detach(self, flags) } #endif + if (sc->sc_isconsole) { + KASSERT(wskbd_console_device == sc); + wskbd_console_device = NULL; + } + evar = &sc->sc_events; if (evar->io) { s = spltty(); |