summaryrefslogtreecommitdiff
path: root/sys/dev/wscons/wskbdutil.c
diff options
context:
space:
mode:
authorMartin Pieuchot <mpi@cvs.openbsd.org>2014-05-15 09:29:39 +0000
committerMartin Pieuchot <mpi@cvs.openbsd.org>2014-05-15 09:29:39 +0000
commit020b9e12d42edb006272e54aeaffb4133bb968ef (patch)
treedb393d2923e5c8134daa4f1a844cd10b6e8691d2 /sys/dev/wscons/wskbdutil.c
parente29fb9f99bafee8500728f8058584a29c723dbdd (diff)
Use a more appropriate malloc(9) type than M_TEMP for the keymap memory
since it is only freed when your keyboard is detached.
Diffstat (limited to 'sys/dev/wscons/wskbdutil.c')
-rw-r--r--sys/dev/wscons/wskbdutil.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/sys/dev/wscons/wskbdutil.c b/sys/dev/wscons/wskbdutil.c
index 9c83d72e08d..21c771f4e67 100644
--- a/sys/dev/wscons/wskbdutil.c
+++ b/sys/dev/wscons/wskbdutil.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: wskbdutil.c,v 1.11 2014/01/26 17:48:08 miod Exp $ */
+/* $OpenBSD: wskbdutil.c,v 1.12 2014/05/15 09:29:38 mpi Exp $ */
/* $NetBSD: wskbdutil.c,v 1.7 1999/12/21 11:59:13 drochner Exp $ */
/*-
@@ -379,10 +379,10 @@ wskbd_init_keymap(int newlen, struct wscons_keymap **map, int *maplen)
if (newlen != *maplen) {
if (*maplen > 0)
- free(*map, M_TEMP);
+ free(*map, M_DEVBUF);
*maplen = newlen;
*map = malloc(newlen*sizeof(struct wscons_keymap),
- M_TEMP, M_WAITOK);
+ M_DEVBUF, M_WAITOK);
}
for (i = 0; i < *maplen; i++) {