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>
Fri, 10 Jun 2011 18:04:40 +0000 (15:04 -0300)
commit0da67bed835fdde68ca0e924d2a2d6ac82c70833
tree99764bd69e391568fd1b43dc90f20ea6493cc354
parent8d03e971cf403305217b8e62db3a2e5ad2d6263f
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