diff options
author | Martin Pieuchot <mpi@cvs.openbsd.org> | 2014-05-15 09:29:39 +0000 |
---|---|---|
committer | Martin Pieuchot <mpi@cvs.openbsd.org> | 2014-05-15 09:29:39 +0000 |
commit | 020b9e12d42edb006272e54aeaffb4133bb968ef (patch) | |
tree | db393d2923e5c8134daa4f1a844cd10b6e8691d2 /sys/dev/wscons/wskbdutil.c | |
parent | e29fb9f99bafee8500728f8058584a29c723dbdd (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.c | 6 |
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++) { |