diff options
Diffstat (limited to 'net/bluetooth/hci_conn.c')
-rw-r--r-- | net/bluetooth/hci_conn.c | 10 |
1 files changed, 2 insertions, 8 deletions
diff --git a/net/bluetooth/hci_conn.c b/net/bluetooth/hci_conn.c index 5e9e193ac71e..385cccbcafe0 100644 --- a/net/bluetooth/hci_conn.c +++ b/net/bluetooth/hci_conn.c | |||
@@ -419,11 +419,8 @@ struct hci_conn *hci_conn_add(struct hci_dev *hdev, int type, bdaddr_t *dst) | |||
419 | hci_dev_hold(hdev); | 419 | hci_dev_hold(hdev); |
420 | 420 | ||
421 | hci_conn_hash_add(hdev, conn); | 421 | hci_conn_hash_add(hdev, conn); |
422 | if (hdev->notify) { | 422 | if (hdev->notify) |
423 | tasklet_disable(&hdev->tx_task); | ||
424 | hdev->notify(hdev, HCI_NOTIFY_CONN_ADD); | 423 | hdev->notify(hdev, HCI_NOTIFY_CONN_ADD); |
425 | tasklet_enable(&hdev->tx_task); | ||
426 | } | ||
427 | 424 | ||
428 | atomic_set(&conn->devref, 0); | 425 | atomic_set(&conn->devref, 0); |
429 | 426 | ||
@@ -468,11 +465,8 @@ int hci_conn_del(struct hci_conn *conn) | |||
468 | hci_chan_list_flush(conn); | 465 | hci_chan_list_flush(conn); |
469 | 466 | ||
470 | hci_conn_hash_del(hdev, conn); | 467 | hci_conn_hash_del(hdev, conn); |
471 | if (hdev->notify) { | 468 | if (hdev->notify) |
472 | tasklet_disable(&hdev->tx_task); | ||
473 | hdev->notify(hdev, HCI_NOTIFY_CONN_DEL); | 469 | hdev->notify(hdev, HCI_NOTIFY_CONN_DEL); |
474 | tasklet_enable(&hdev->tx_task); | ||
475 | } | ||
476 | 470 | ||
477 | skb_queue_purge(&conn->data_q); | 471 | skb_queue_purge(&conn->data_q); |
478 | 472 | ||