summaryrefslogtreecommitdiffstats
path: root/sys/dev/vkbd
diff options
context:
space:
mode:
authoremax <emax@FreeBSD.org>2005-07-21 16:19:08 +0000
committeremax <emax@FreeBSD.org>2005-07-21 16:19:08 +0000
commitce7209a491acdae04c953a38efa504107271b982 (patch)
tree53bb7220513d4e35f54099a95211ab4859f8e8c3 /sys/dev/vkbd
parent149187706d0ae27fab4ddabfa696ed1fe7d4d771 (diff)
downloadFreeBSD-src-ce7209a491acdae04c953a38efa504107271b982.zip
FreeBSD-src-ce7209a491acdae04c953a38efa504107271b982.tar.gz
Fix kernel panic with vkbd(4). Initialize mutex properly (set name), or else
WITNESS gets upset. MFC after: 3 days
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 622e6f1..ed39007 100644
--- a/sys/dev/vkbd/vkbd.c
+++ b/sys/dev/vkbd/vkbd.c
@@ -65,7 +65,7 @@ MALLOC_DEFINE(M_VKBD, KEYBOARD_NAME, "Virtual AT keyboard");
*****************************************************************************/
#define VKBD_LOCK_DECL struct mtx ks_lock
-#define VKBD_LOCK_INIT(s) mtx_init(&(s)->ks_lock, NULL, NULL, MTX_DEF)
+#define VKBD_LOCK_INIT(s) mtx_init(&(s)->ks_lock, "vkbd_lock", NULL, MTX_DEF|MTX_RECURSE)
#define VKBD_LOCK_DESTROY(s) mtx_destroy(&(s)->ks_lock)
#define VKBD_LOCK(s) mtx_lock(&(s)->ks_lock)
#define VKBD_UNLOCK(s) mtx_unlock(&(s)->ks_lock)
OpenPOWER on IntegriCloud