Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux

Bluetooth: Add put(hcon) when deleting hchan

When refcnt reaches zero disconnect timeout will run and hci_conn
will be disconnected.

Signed-off-by: Andrei Emeltchenko <andrei.emeltchenko@intel.com>
Acked-by: Marcel Holtmann <marcel@holtmann.org>
Signed-off-by: Gustavo Padovan <gustavo.padovan@collabora.co.uk>

authored by

Andrei Emeltchenko and committed by
Gustavo Padovan
e9b02748 27695fb4

+2
+2
net/bluetooth/hci_conn.c
··· 980 980 981 981 synchronize_rcu(); 982 982 983 + hci_conn_put(conn); 984 + 983 985 skb_queue_purge(&chan->data_q); 984 986 kfree(chan); 985 987 }