Skip to contentSkip to conversation

Revert "Bluetooth: fix shutdown on SCO sockets"

DISCUSSION Gustavo F. Padovan 1 participant 1 message May 11, 2011 Bluetooth drivers

lore
Share & tools
lore
#0 lore raw

Hi Linus,

Commit f21ca5fff6e548833fa5ee8867239a8378623150 can cause a NULL dereference if we call shutdown in a bluetooth SCO socket and doesn't wait the shutdown completion to call close(). Please revert it. I may have a fix for it soon, but we don't have time anymore, so revert is the way to go. ;)

Regards,

commit f21ca5fff6e548833fa5ee8867239a8378623150

Author: Luiz Augusto von Dentz <[email protected]>
Date:   Fri Apr 8 17:10:41 2011 +0300

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.

Signature · 2 lines
Gustavo F. Padovan
http://profusion.mobi