summaryrefslogtreecommitdiff
path: root/net/bluetooth/hci_conn.c
diff options
context:
space:
mode:
authorJohn W. Linville <linville@tuxdriver.com>2011-07-05 22:33:09 +0400
committerJohn W. Linville <linville@tuxdriver.com>2011-07-05 22:33:09 +0400
commitf2529c2cc80b72fcf889a9399e522b9648ab4d9e (patch)
tree345c37f67d53f6b07a81fe5f625fe6af946359d5 /net/bluetooth/hci_conn.c
parenta0b8de350be458b33248e48b2174d9af8a4c4798 (diff)
parent163f4dabea4e3be485c17e8f08e3a6468ad31cbf (diff)
downloadlinux-f2529c2cc80b72fcf889a9399e522b9648ab4d9e.tar.xz
Merge branch 'master' of master.kernel.org:/pub/scm/linux/kernel/git/padovan/bluetooth-2.6
Diffstat (limited to 'net/bluetooth/hci_conn.c')
-rw-r--r--net/bluetooth/hci_conn.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/net/bluetooth/hci_conn.c b/net/bluetooth/hci_conn.c
index d3a05b9ade7a..bcd158f40bb9 100644
--- a/net/bluetooth/hci_conn.c
+++ b/net/bluetooth/hci_conn.c
@@ -393,6 +393,9 @@ int hci_conn_del(struct hci_conn *conn)
hci_dev_put(hdev);
+ if (conn->handle == 0)
+ kfree(conn);
+
return 0;
}