linux/net/bluetooth
Gustavo Padovan acdcabf532 Bluetooth: Hold socket in defer callback in L2CAP socket
In both places that we use the defer callback the socket lock is held for
a indirect sk access inside __l2cap_change_state() and chan->ops->defer(),
all the rest of the code between lock_sock() and release_sock() is
already protected by the channel lock and won't be affected by this
change.

We now use l2cap_change_state(), the locked version of the change state
function, and the defer callback does the locking itself now. This does
not affect other uses of the defer callback.

Signed-off-by: Gustavo Padovan <gustavo.padovan@collabora.co.uk>
Signed-off-by: Marcel Holtmann <marcel@holtmann.org>
2013-10-21 12:58:17 -07:00
..
bnep
cmtp
hidp
rfcomm
a2mp.c
a2mp.h
af_bluetooth.c
amp.c
amp.h
hci_conn.c
hci_core.c Bluetooth: Fix minor coding style issue in hci_core.c 2013-10-19 20:46:27 +03:00
hci_event.c
hci_sock.c
hci_sysfs.c
Kconfig
l2cap_core.c Bluetooth: Hold socket in defer callback in L2CAP socket 2013-10-21 12:58:17 -07:00
l2cap_sock.c Bluetooth: Hold socket in defer callback in L2CAP socket 2013-10-21 12:58:17 -07:00
lib.c
Makefile
mgmt.c Bluetooth: Fix enabling fast connectable on LE-only controllers 2013-10-21 07:18:27 -07:00
sco.c
smp.c
smp.h