linux/net/bluetooth
Johan Hedberg 744cf19ead Bluetooth: Pass full hci_dev struct to mgmt callbacks
The current global pending command list in mgmt.c is racy. Possibly the
simplest way to fix it is to have per-hci dev lists instead of a global
one (all commands that need a pending struct are hci_dev specific).
This way the list can be protected using the already existing per-hci
dev lock. To enable this refactoring the first thing that needs to be
done is to ensure that the mgmt functions have access to the hci_dev
struct (instead of just the dev id).

Signed-off-by: Johan Hedberg <johan.hedberg@intel.com>
Acked-by: Marcel Holtmann <marcel@holtmann.org>
Signed-off-by: Gustavo F. Padovan <padovan@profusion.mobi>
2011-11-09 12:33:26 -02:00
..
bnep Bluetooth: replace list_for_each with list_for_each_entry whenever possible 2011-11-07 17:24:46 -02:00
cmtp Bluetooth: replace list_for_each with list_for_each_entry whenever possible 2011-11-07 17:24:46 -02:00
hidp Bluetooth: Fix hidp_get_connection() 2011-11-07 17:24:55 -02:00
rfcomm Bluetooth: rfcomm: Fix sleep in invalid context in rfcomm_security_cfm 2011-11-07 17:24:49 -02:00
Kconfig bluetooth: uses crypto interfaces, select CRYPTO 2011-06-27 15:09:39 -04:00
Makefile Bluetooth: Implement the first SMP commands 2011-06-13 15:11:55 -03:00
af_bluetooth.c Bluetooth: Handle fragmented skbs in bt_sock_stream_recvmsg() 2011-09-27 18:16:07 -03:00
hci_conn.c Bluetooth: Define HCI reasons instead of magic number 2011-11-08 12:53:11 -02:00
hci_core.c Bluetooth: Pass full hci_dev struct to mgmt callbacks 2011-11-09 12:33:26 -02:00
hci_event.c Bluetooth: Pass full hci_dev struct to mgmt callbacks 2011-11-09 12:33:26 -02:00
hci_sock.c Bluetooth: Add mgmt events for blacklisting 2011-09-21 12:59:15 -03:00
hci_sysfs.c Bluetooth: replace list_for_each with list_for_each_entry whenever possible 2011-11-07 17:24:46 -02:00
l2cap_core.c Bluetooth: EFS: parse L2CAP config response 2011-11-08 12:53:57 -02:00
l2cap_sock.c Bluetooth: Add channel policy to getsockopt/setsockopt 2011-11-07 17:25:00 -02:00
lib.c Bluetooth: Add bt_printk 2011-06-30 19:17:12 -03:00
mgmt.c Bluetooth: Pass full hci_dev struct to mgmt callbacks 2011-11-09 12:33:26 -02:00
sco.c Bluetooth: sco: Fix lost wakeups waiting to accept socket 2011-08-11 19:50:26 -03:00
smp.c Bluetooth: prioritizing data over HCI 2011-11-07 17:24:56 -02:00