projects
/
openwrt
/
staging
/
blogic.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
27695fb
)
Bluetooth: Add put(hcon) when deleting hchan
author
Andrei Emeltchenko
<
[email protected]
>
Thu, 25 Oct 2012 12:20:51 +0000
(15:20 +0300)
committer
Gustavo Padovan
<
[email protected]
>
Thu, 1 Nov 2012 22:27:03 +0000
(20:27 -0200)
When refcnt reaches zero disconnect timeout will run and hci_conn
will be disconnected.
Signed-off-by: Andrei Emeltchenko <
[email protected]
>
Acked-by: Marcel Holtmann <
[email protected]
>
Signed-off-by: Gustavo Padovan <
[email protected]
>
net/bluetooth/hci_conn.c
patch
|
blob
|
history
diff --git
a/net/bluetooth/hci_conn.c
b/net/bluetooth/hci_conn.c
index dc331ceca471351145b2c44ef3a1af05f53c3d5d..25bfce0666ebff70258019ddb1bba9b6f1eca967 100644
(file)
--- a/
net/bluetooth/hci_conn.c
+++ b/
net/bluetooth/hci_conn.c
@@
-980,6
+980,8
@@
void hci_chan_del(struct hci_chan *chan)
synchronize_rcu();
+ hci_conn_put(conn);
+
skb_queue_purge(&chan->data_q);
kfree(chan);
}