diff options
| author | David S. Miller <davem@davemloft.net> | 2011-07-08 09:33:34 -0700 |
|---|---|---|
| committer | David S. Miller <davem@davemloft.net> | 2011-07-08 09:33:34 -0700 |
| commit | 3f97fae9482dac1dbdd870a25c89033d3a0b35dc (patch) | |
| tree | c98fb21da14bf22ab7ea23098945e31bef6558fc /net/bluetooth/hci_conn.c | |
| parent | 06b8fc5d308b15e853a68c3d4854fb2ac33db867 (diff) | |
| parent | 8a98d935c4b8b3515d1403d150e282f95b9f558d (diff) | |
Merge branch 'for-davem' of git://git.kernel.org/pub/scm/linux/kernel/git/linville/wireless-2.6
Diffstat (limited to 'net/bluetooth/hci_conn.c')
| -rw-r--r-- | net/bluetooth/hci_conn.c | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/net/bluetooth/hci_conn.c b/net/bluetooth/hci_conn.c index d3a05b9ade7..bcd158f40bb 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; } |
