patch-2.4.26 linux-2.4.26/net/bluetooth/rfcomm/core.c

Next file: linux-2.4.26/net/bluetooth/rfcomm/tty.c
Previous file: linux-2.4.26/net/bluetooth/l2cap.c
Back to the patch index
Back to the overall index

diff -urN linux-2.4.25/net/bluetooth/rfcomm/core.c linux-2.4.26/net/bluetooth/rfcomm/core.c
@@ -1654,9 +1654,10 @@
 	nsock->sk->state_change = rfcomm_l2state_change;
 
 	s = rfcomm_session_add(nsock, BT_OPEN);
-	if (s)
+	if (s) {
 		rfcomm_session_hold(s);
-	else
+		rfcomm_schedule(RFCOMM_SCHED_RX);
+	} else
 		sock_release(nsock);
 }
 

FUNET's LINUX-ADM group, linux-adm@nic.funet.fi
TCL-scripts by Sam Shen (who was at: slshen@lbl.gov)