Bluetooth: fix shutdown on SCO sockets
authorLuiz Augusto von Dentz <luiz.dentz-von@nokia.com>
Thu, 12 May 2011 08:13:15 +0000 (11:13 +0300)
committerGustavo F. Padovan <padovan@profusion.mobi>
Thu, 9 Jun 2011 18:30:01 +0000 (15:30 -0300)
commit4a77708b055a71bf769a917283a9eba3dcedb017
tree6242b01bbbdb5993f30e8301e57486ea2958fd11
parentd0fad89da9801b3945d2ee7243ecbc75b3da6f09
Bluetooth: fix shutdown on SCO sockets

shutdown should wait for SCO link to be properly disconnected before
detroying the socket, otherwise an application using the socket may
assume link is properly disconnected before it really happens which
can be a problem when e.g synchronizing profile switch.

Signed-off-by: Luiz Augusto von Dentz <luiz.dentz-von@nokia.com>
Signed-off-by: Gustavo F. Padovan <padovan@profusion.mobi>
net/bluetooth/sco.c