Allow bthidev_output() to not grab the bt lock, to prevent lock
authormiod <miod@openbsd.org>
Thu, 5 Aug 2010 13:13:17 +0000 (13:13 +0000)
committermiod <miod@openbsd.org>
Thu, 5 Aug 2010 13:13:17 +0000 (13:13 +0000)
commit2934a9b8d9db4222e81a6b07bc058f24eb3589cf
tree6fbfad9999c72d6c7e5beeea231039b5cb98bffe
parent797865f6a9ee898ea2a427ada41f057c6c77e5c4
Allow bthidev_output() to not grab the bt lock, to prevent lock
recursion when trying to send commands from input callbacks. Makes the
caps/num/scroll lock keys on btkbd correctly lit the leds instead of
panic'ing.
Noticed and fix tested by mlarkin@, "do whatever you want in bt" deraadt@
sys/dev/bluetooth/bthidev.c
sys/dev/bluetooth/bthidev.h
sys/dev/bluetooth/btkbd.c