bthidd causes panic on recent -current (7.0)

Maksim Yevmenkin maksim.yevmenkin at savvis.net
Thu Jul 21 16:16:11 GMT 2005


Eric,

> I recently cvsupped, and rebuilt world/kernel.  After booting up, I 
> panic when bthidd runs.

thanks for the report. the problem is not bthidd(8), its vkbd(4). i made 
a typo and did not properly initialize mutex (missed name). the patch is 
attached.

thanks,
max

-------------- next part --------------
Index: vkbd.c
===================================================================
RCS file: /usr/local/cvs/sys/dev/vkbd/vkbd.c,v
retrieving revision 1.22
diff -u -r1.22 vkbd.c
--- vkbd.c	23 Jun 2005 00:30:37 -0000	1.22
+++ vkbd.c	21 Jul 2005 16:11:15 -0000
@@ -65,7 +65,7 @@
  *****************************************************************************/
 
 #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)


More information about the freebsd-bluetooth mailing list