patch-2.4.27 linux-2.4.27/net/bluetooth/hci_event.c

Next file: linux-2.4.27/net/bluetooth/l2cap.c
Previous file: linux-2.4.27/net/bluetooth/bnep/core.c
Back to the patch index
Back to the overall index

diff -urN linux-2.4.26/net/bluetooth/hci_event.c linux-2.4.27/net/bluetooth/hci_event.c
@@ -320,7 +320,7 @@
 			status, batostr(&cc->bdaddr), conn);
 
 	if (status) {
-		if (conn) {
+		if (conn && conn->state == BT_CONNECT) {
 			conn->state = BT_CLOSED;
 			hci_proto_connect_cfm(conn, status);
 			hci_conn_del(conn);

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