summaryrefslogtreecommitdiffstats
path: root/net/ax25/ax25_ds_timer.c
diff options
context:
space:
mode:
authorMat Martineau <mathewm@codeaurora.org>2011-12-07 01:23:26 +0100
committerGustavo F. Padovan <padovan@profusion.mobi>2011-12-19 01:29:35 +0100
commit79e654787c67f6b05f73366ff8ccac72ba7249e6 (patch)
treec1a498c2af15b6df2387898ac260c84f4a4dbbd1 /net/ax25/ax25_ds_timer.c
parentBluetooth: Prevent uninitialized data access in L2CAP configuration (diff)
downloadlinux-79e654787c67f6b05f73366ff8ccac72ba7249e6.tar.xz
linux-79e654787c67f6b05f73366ff8ccac72ba7249e6.zip
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>
Diffstat (limited to 'net/ax25/ax25_ds_timer.c')
0 files changed, 0 insertions, 0 deletions