linux/include/net/bluetooth
Mat Martineau 2827011f66 Bluetooth: Fix early return from l2cap_chan_del
This fixes a regression from commit
2ead70b839 that is present in all
kernels starting at v3.0.

When L2CAP information was moved to struct l2cap_chan, a check was
added to l2cap_chan_del to avoid certain cleanup operations when ERTM
or streaming mode had not yet been initialized.  The logic in the
check did not take in to account that chan->conf_state is set to 0 in
l2cap_chan_ready, so l2cap_chan_del failed to cancel timers and leaked
memory any time the ERTM queues or lists were not empty.

This change makes sure that l2cap_chan_del only returns early if
ERTM initialization was not performed.

Signed-off-by: Mat Martineau <mathewm@codeaurora.org>
Signed-off-by: Marcel Holtmann <marcel@holtmann.org>
2012-06-05 06:34:02 +03:00
..
bluetooth.h Bluetooth: Create flags for bt_sk() 2012-05-16 16:14:17 -03:00
hci.h Bluetooth: Enable Low Energy support by default 2012-05-09 01:40:52 -03:00
hci_core.h Bluetooth: Fix EIR data generation for mgmt_device_found 2012-05-16 16:13:19 -03:00
hci_mon.h Bluetooth: Fix coding style in all .h files 2012-03-07 00:04:25 -03:00
l2cap.h Bluetooth: Fix early return from l2cap_chan_del 2012-06-05 06:34:02 +03:00
mgmt.h Bluetooth: Add management command for setting Device ID 2012-05-09 00:41:30 -03:00
rfcomm.h Bluetooth: rfcomm: Fix sleep in invalid context in rfcomm_security_cfm 2011-11-07 17:24:49 -02:00
sco.h Bluetooth: clean up legal text 2010-12-01 21:04:43 -02:00
smp.h Bluetooth: Correct ediv in SMP 2012-05-09 00:41:30 -03:00