Skip to content

Commit ce84537

Browse files
committed
Revert "Bluetooth: fix shutdown on SCO sockets"
This reverts commit f21ca5f. Quoth Gustavo F. Padovan: "Commit f21ca5f 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. ;)" Requested-by: Gustavo F. Padovan <padovan@profusion.mobi> Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
1 parent 0e6f76c commit ce84537

1 file changed

Lines changed: 0 additions & 9 deletions

File tree

‎net/bluetooth/sco.c‎

Lines changed: 0 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -369,15 +369,6 @@ static void __sco_sock_close(struct sock *sk)
369369

370370
case BT_CONNECTED:
371371
case BT_CONFIG:
372-
if (sco_pi(sk)->conn) {
373-
sk->sk_state = BT_DISCONN;
374-
sco_sock_set_timer(sk, SCO_DISCONN_TIMEOUT);
375-
hci_conn_put(sco_pi(sk)->conn->hcon);
376-
sco_pi(sk)->conn = NULL;
377-
} else
378-
sco_chan_del(sk, ECONNRESET);
379-
break;
380-
381372
case BT_CONNECT:
382373
case BT_DISCONN:
383374
sco_chan_del(sk, ECONNRESET);

0 commit comments

Comments
 (0)