linux/net/bluetooth
Mat Martineau 79e654787c Bluetooth: Clear RFCOMM session timer when disconnecting last channel
When the last RFCOMM data channel is closed, a timer is normally set
up to disconnect the control channel at a later time.  If the control
channel disconnect command is sent with the timer pending, the timer
needs to be cancelled.

If the timer is not cancelled in this situation, the reference
counting logic for the RFCOMM session does not work correctly when the
remote device closes the L2CAP connection.  The session is freed at
the wrong time, leading to a kernel panic.

Signed-off-by: Mat Martineau <mathewm@codeaurora.org>
Acked-by: Marcel Holtmann <marcel@holtmann.org>
Signed-off-by: Gustavo F. Padovan <padovan@profusion.mobi>
2011-12-18 22:29:35 -02:00
..
bnep Bluetooth: bnep: Fix module reference 2011-11-21 14:29:25 -02:00
cmtp Bluetooth: cmtp: Fix module reference 2011-11-21 14:28:45 -02:00
hidp Bluetooth: Linearize skbs for use in BNEP, CMTP, HIDP, and RFCOMM 2011-09-27 18:15:55 -03:00
rfcomm Bluetooth: Clear RFCOMM session timer when disconnecting last channel 2011-12-18 22:29:35 -02:00
af_bluetooth.c Bluetooth: Handle fragmented skbs in bt_sock_stream_recvmsg() 2011-09-27 18:16:07 -03:00
hci_conn.c Bluetooth: Revert: Fix L2CAP connection establishment 2011-11-07 16:46:05 -02:00
hci_core.c Merge branch 'master' of git://git.kernel.org/pub/scm/linux/kernel/git/padovan/bluetooth 2011-11-02 15:15:51 -04:00
hci_event.c Bluetooth: Correct version check in hci_setup 2011-12-03 08:20:00 +09:00
hci_sock.c Bluetooth: Add mgmt events for blacklisting 2011-09-21 12:59:15 -03:00
hci_sysfs.c Bluetooth: Add LE link type for debugfs output 2011-09-21 12:58:12 -03:00
Kconfig bluetooth: uses crypto interfaces, select CRYPTO 2011-06-27 15:09:39 -04:00
l2cap_core.c Bluetooth: Prevent uninitialized data access in L2CAP configuration 2011-12-18 22:16:04 -02:00
l2cap_sock.c bluetooth: Properly clone LSM attributes to newly created child connections 2011-10-18 23:36:43 -04:00
lib.c Bluetooth: Add bt_printk 2011-06-30 19:17:12 -03:00
Makefile Bluetooth: Implement the first SMP commands 2011-06-13 15:11:55 -03:00
mgmt.c Merge branch 'master' of git://git.kernel.org/pub/scm/linux/kernel/git/padovan/bluetooth 2011-11-02 15:15:51 -04:00
sco.c bluetooth: Properly clone LSM attributes to newly created child connections 2011-10-18 23:36:43 -04:00
smp.c Bluetooth: Remove support for other SMP keys than the LTK 2011-09-21 12:59:16 -03:00