Merge "bluetooth: Notify connection deletion only for SCO/ESCO links."

This commit is contained in:
Linux Build Service Account 2014-12-04 07:49:58 -08:00 committed by Gerrit - the friendly Code Review server
commit 256995a04c
1 changed files with 5 additions and 3 deletions

View File

@ -1,6 +1,7 @@
/*
BlueZ - Bluetooth protocol stack for Linux
Copyright (c) 2000-2001, 2010, Code Aurora Forum. All rights reserved.
Copyright (c) 2000-2001, 2010, 2014, Code Aurora Forum. All rights
reserved.
Written 2000,2001 by Maxim Krasnyansky <maxk@qualcomm.com>
@ -467,8 +468,9 @@ int hci_conn_del(struct hci_conn *conn)
amp_mgr_put(conn->amp_mgr);
hci_conn_hash_del(hdev, conn);
if (hdev->notify)
hdev->notify(hdev, HCI_NOTIFY_CONN_DEL);
if (hdev->notify &&
(conn->type == SCO_LINK || conn->type == ESCO_LINK))
hdev->notify(hdev, HCI_NOTIFY_CONN_DEL);
skb_queue_purge(&conn->data_q);