diff options
author | gnezdo <gnezdo@cvs.openbsd.org> | 2021-01-09 20:45:56 +0000 |
---|---|---|
committer | gnezdo <gnezdo@cvs.openbsd.org> | 2021-01-09 20:45:56 +0000 |
commit | 52653cc5778b71fd434de44e0e46ab70f4511751 (patch) | |
tree | afbcc70490e4188bdf4a458d04fdef5dbbef7299 | |
parent | 9ae30b7a0ff4178f399a7f9422d279e885f2b614 (diff) |
Stop wsmux_attach_sc race from anton@
OK millert@
-rw-r--r-- | sys/dev/wscons/wsmux.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/sys/dev/wscons/wsmux.c b/sys/dev/wscons/wsmux.c index 35c0c008ef5..6634c7bbe6e 100644 --- a/sys/dev/wscons/wsmux.c +++ b/sys/dev/wscons/wsmux.c @@ -1,4 +1,4 @@ -/* $OpenBSD: wsmux.c,v 1.52 2020/12/06 07:58:54 anton Exp $ */ +/* $OpenBSD: wsmux.c,v 1.53 2021/01/09 20:45:55 gnezdo Exp $ */ /* $NetBSD: wsmux.c,v 1.37 2005/04/30 03:47:12 augustss Exp $ */ /* @@ -762,7 +762,7 @@ wsmux_detach_sc_locked(struct wsmux_softc *sc, struct wsevsrc *me) (void)wsevsrc_set_display(me, NULL); } else #endif - if (me->me_evp != NULL) { + if (me->me_evp != NULL) { DPRINTF(("%s: close\n", __func__)); /* mux device is open, so close multiplexee */ (void)wsevsrc_close(me); |