Bluetooth: Add missing hci_dev locking when calling mgmt functions
authorJohan Hedberg <johan.hedberg@intel.com>
Tue, 8 Nov 2011 18:40:16 +0000 (20:40 +0200)
committerGustavo F. Padovan <padovan@profusion.mobi>
Wed, 9 Nov 2011 14:33:46 +0000 (12:33 -0200)
commit56e5cb86eb377970825486a5861f5926d65e64c1
tree87e57ea9c98f2663a359717b658c05d0ee2fecac
parent2e58ef3e11d0775795345a20185b5a7c4bdae194
Bluetooth: Add missing hci_dev locking when calling mgmt functions

Now that the pending commands are within struct hci_dev we can properly
control access to them throught the hci_dev locking mechanism.

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>
net/bluetooth/hci_core.c
net/bluetooth/hci_event.c
net/bluetooth/mgmt.c