summaryrefslogtreecommitdiffstats
path: root/sys/dev/vkbd
diff options
context:
space:
mode:
authoremax <emax@FreeBSD.org>2005-05-20 23:29:55 +0000
committeremax <emax@FreeBSD.org>2005-05-20 23:29:55 +0000
commitb10ae11bf96d7434d36df7cc8cd601d55d92adf6 (patch)
tree71ff0440a40efe3943206ba6d7b4b9a323fae83b /sys/dev/vkbd
parentb351552abd8e21fa71087afcf0683e0d32dd59fc (diff)
downloadFreeBSD-src-b10ae11bf96d7434d36df7cc8cd601d55d92adf6.zip
FreeBSD-src-b10ae11bf96d7434d36df7cc8cd601d55d92adf6.tar.gz
Fix yet another cut-and-paste bug.
kbd was allocated from M_VKBD not from M_DEVBUF
Diffstat (limited to 'sys/dev/vkbd')
-rw-r--r--sys/dev/vkbd/vkbd.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/sys/dev/vkbd/vkbd.c b/sys/dev/vkbd/vkbd.c
index 940e414..622e6f1 100644
--- a/sys/dev/vkbd/vkbd.c
+++ b/sys/dev/vkbd/vkbd.c
@@ -673,7 +673,7 @@ bad:
if (fkeymap != NULL)
free(fkeymap, M_VKBD);
if (kbd != NULL) {
- free(kbd, M_DEVBUF);
+ free(kbd, M_VKBD);
*kbdp = NULL; /* insure ref doesn't leak to caller */
}
}
OpenPOWER on IntegriCloud