summaryrefslogtreecommitdiff
path: root/sys/dev/wscons/wsevent.c
diff options
context:
space:
mode:
Diffstat (limited to 'sys/dev/wscons/wsevent.c')
-rw-r--r--sys/dev/wscons/wsevent.c6
1 files changed, 5 insertions, 1 deletions
diff --git a/sys/dev/wscons/wsevent.c b/sys/dev/wscons/wsevent.c
index 52e0096440b..993a33e45ec 100644
--- a/sys/dev/wscons/wsevent.c
+++ b/sys/dev/wscons/wsevent.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: wsevent.c,v 1.17 2017/04/11 14:43:49 dhill Exp $ */
+/* $OpenBSD: wsevent.c,v 1.18 2018/11/19 19:19:24 anton Exp $ */
/* $NetBSD: wsevent.c,v 1.16 2003/08/07 16:31:29 agc Exp $ */
/*
@@ -111,6 +111,8 @@ wsevent_init(struct wseventvar *ev)
ev->get = ev->put = 0;
ev->q = malloc(WSEVENT_QSIZE * sizeof(struct wscons_event),
M_DEVBUF, M_WAITOK | M_ZERO);
+
+ sigio_init(&ev->sigio);
}
/*
@@ -127,6 +129,8 @@ wsevent_fini(struct wseventvar *ev)
}
free(ev->q, M_DEVBUF, 0);
ev->q = NULL;
+
+ sigio_free(&ev->sigio);
}
/*