Skip site navigation (1)Skip section navigation (2)
Date:      Thu, 21 Jul 2005 09:15:30 -0700
From:      Maksim Yevmenkin <maksim.yevmenkin@savvis.net>
To:        Eric Anderson <anderson@centtech.com>
Cc:        freebsd-bluetooth@freebsd.org
Subject:   Re: bthidd causes panic on recent -current (7.0)
Message-ID:  <42DFCA22.5080007@savvis.net>
In-Reply-To: <42DFC4B1.9010301@centtech.com>

index | next in thread | previous in thread | raw e-mail

[-- Attachment #1 --]
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


[-- Attachment #2 --]
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)
home | help

Want to link to this message? Use this
URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?42DFCA22.5080007>