summaryrefslogtreecommitdiffstats
path: root/net/bluetooth/hci_core.c
diff options
context:
space:
mode:
authorJohan Hedberg2013-04-02 12:34:31 +0200
committerJohan Hedberg2013-04-04 18:16:04 +0200
commitb6ddb638235d90ed67af9af40e63880fd66a1939 (patch)
treeacb90fd3ac15d2e879a2f1df5a5992b9c3d40afd /net/bluetooth/hci_core.c
parentBluetooth: Remove trivial white space (diff)
downloadkernel-qcow2-linux-b6ddb638235d90ed67af9af40e63880fd66a1939.tar.gz
kernel-qcow2-linux-b6ddb638235d90ed67af9af40e63880fd66a1939.tar.xz
kernel-qcow2-linux-b6ddb638235d90ed67af9af40e63880fd66a1939.zip
Bluetooth: Track received events in hdev
This patch adds tracking of received HCI events to the hci_dev struct. This is necessary so that a subsequent patch can implement a function for sending a single command synchronously and returning the resulting command complete parameters in the function return value. Signed-off-by: Johan Hedberg <johan.hedberg@intel.com> Acked-by: Marcel Holtmann <marcel@holtmann.org>
Diffstat (limited to 'net/bluetooth/hci_core.c')
-rw-r--r--net/bluetooth/hci_core.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/net/bluetooth/hci_core.c b/net/bluetooth/hci_core.c
index a199d631e31c..7c323bd112ff 100644
--- a/net/bluetooth/hci_core.c
+++ b/net/bluetooth/hci_core.c
@@ -1136,6 +1136,9 @@ static int hci_dev_do_close(struct hci_dev *hdev)
hdev->sent_cmd = NULL;
}
+ kfree_skb(hdev->recv_evt);
+ hdev->recv_evt = NULL;
+
/* After this point our queues are empty
* and no tasks are scheduled. */
hdev->close(hdev);