linux-kernel-test/include/net/bluetooth
David Herrmann 0ac7e7002c Bluetooth: Fix hci core device initialization
We must not call device_del() if we didn't use device_add(). See module.c
for comments on that. Therefore, we need to call device_initialize() when
allocating the hci device and later device_add() instead of
device_register().

This also fixes a bug when hci_register_dev() failed and we call
hci_free_dev() without a valid core device. hci_free_dev() segfaults while
calling put_device() on invalid memory.

We already do this with hci_conn connections (hci_conn_init_sysfs()) so
they do not need to be fixed.

Signed-off-by: David Herrmann <dh.herrmann@googlemail.com>
Signed-off-by: Gustavo F. Padovan <padovan@profusion.mobi>
2011-10-14 15:22:28 -03:00
..
bluetooth.h Bluetooth: Add support for returning the encryption key size 2011-07-08 18:39:31 -03:00
hci_core.h Bluetooth: Fix hci core device initialization 2011-10-14 15:22:28 -03:00
hci.h Bluetooth: AMP: read local amp info HCI command 2011-10-13 17:34:16 -03:00
l2cap.h Bluetooth: EFS: assign default values in chan add 2011-10-13 17:09:08 -03:00
mgmt.h Bluetooth: Add mgmt events for blacklisting 2011-09-21 12:59:15 -03:00
rfcomm.h Bluetooth: Clean up some code style issues 2011-06-09 16:33:28 -03:00
sco.h Bluetooth: clean up legal text 2010-12-01 21:04:43 -02:00
smp.h Bluetooth: Move SMP crypto functions to a workqueue 2011-09-21 12:58:12 -03:00