diff options
-rw-r--r-- | net/bluetooth/hci_conn.c | 4 | ||||
-rw-r--r-- | net/bluetooth/hci_event.c | 2 |
2 files changed, 2 insertions, 4 deletions
diff --git a/net/bluetooth/hci_conn.c b/net/bluetooth/hci_conn.c index efd5c926cc1b..1181db08d9de 100644 --- a/net/bluetooth/hci_conn.c +++ b/net/bluetooth/hci_conn.c | |||
@@ -287,6 +287,8 @@ int hci_conn_del(struct hci_conn *conn) | |||
287 | 287 | ||
288 | skb_queue_purge(&conn->data_q); | 288 | skb_queue_purge(&conn->data_q); |
289 | 289 | ||
290 | hci_conn_del_sysfs(conn); | ||
291 | |||
290 | return 0; | 292 | return 0; |
291 | } | 293 | } |
292 | 294 | ||
@@ -560,8 +562,6 @@ void hci_conn_hash_flush(struct hci_dev *hdev) | |||
560 | 562 | ||
561 | c->state = BT_CLOSED; | 563 | c->state = BT_CLOSED; |
562 | 564 | ||
563 | hci_conn_del_sysfs(c); | ||
564 | |||
565 | hci_proto_disconn_cfm(c, 0x16); | 565 | hci_proto_disconn_cfm(c, 0x16); |
566 | hci_conn_del(c); | 566 | hci_conn_del(c); |
567 | } | 567 | } |
diff --git a/net/bluetooth/hci_event.c b/net/bluetooth/hci_event.c index c396542c2b82..55534244c3a0 100644 --- a/net/bluetooth/hci_event.c +++ b/net/bluetooth/hci_event.c | |||
@@ -1019,8 +1019,6 @@ static inline void hci_disconn_complete_evt(struct hci_dev *hdev, struct sk_buff | |||
1019 | if (conn) { | 1019 | if (conn) { |
1020 | conn->state = BT_CLOSED; | 1020 | conn->state = BT_CLOSED; |
1021 | 1021 | ||
1022 | hci_conn_del_sysfs(conn); | ||
1023 | |||
1024 | hci_proto_disconn_cfm(conn, ev->reason); | 1022 | hci_proto_disconn_cfm(conn, ev->reason); |
1025 | hci_conn_del(conn); | 1023 | hci_conn_del(conn); |
1026 | } | 1024 | } |