summaryrefslogtreecommitdiffstats
path: root/sys/dev/bluetooth/bthidev.c (follow)
Commit message (Collapse)AuthorAgeFilesLines
* M_WAITOK cleanup of two cases:mk2011-06-171-2/+3
| | | | | | | | | | | | | | | | 1) Allocating with M_WAITOK, checking for NULL, and calling panic() is pointless (malloc() will panic if it can't allocate) so remove the check and the call. 2) Allocating with M_WAITOK, checking for NULL, and then gracefully handling failure to allocate is pointless. Instead also pass M_CANFAIL so malloc() doesn't panic so we can actually handle it gracefully. 1) was done using Coccinelle. Input from oga. ok miod.
* Allow bthidev_output() to not grab the bt lock, to prevent lockmiod2010-08-051-5/+7
| | | | | | | 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@
* timeout_add -> timeout_add_msecblambert2010-07-021-5/+5
| | | | ok krw@
* User triggerable KASSERT()s and NULL dereferences in netbt setsockopt()s,guenther2009-11-211-5/+5
| | | | | | | found by Clement LECIGNE, localhost DoS everywhere. Also, don't leak the mbuf when the wrong level is used. ok claudio@, "just commit" deraadt@
* Respond to incoming connections, not only after we initiated the first one.uwe2008-11-241-1/+2
| | | | | Someone must have fumbled with this line by accident while doing the original port of the driver.
* Sync bluetooth with NetBSDuwe2008-11-221-20/+14
|
* Second pass of simple timeout_add -> timeout_add_sec conversionsblambert2008-10-151-3/+3
| | | | | | | This should take care of the simpler ones (i.e., timeout values of integer multiples of hz). ok krw@, art@
* Sync Bluetooth HID drivers with NetBSD and adopt to our needs, as weuwe2008-02-241-60/+164
| | | | don't have problib
* - Add bthidev(4), from NetBSD.xsa2007-09-011-0/+801
- Make btms(4) and btkbd(4) compile. - Removed remaining proplib NetBSD'sim Prodded a while ago by gwk@. Eyeballed by miod@.