]> git.baikalelectronics.ru Git - kernel.git/commit
Bluetooth: Proper shutdown ERTM when closing the channel
authorGustavo F. Padovan <padovan@profusion.mobi>
Thu, 13 May 2010 23:50:12 +0000 (20:50 -0300)
committerMarcel Holtmann <marcel@holtmann.org>
Wed, 21 Jul 2010 17:39:05 +0000 (10:39 -0700)
commit7e8efad9f429b4d0cc5d560943966e2e92ed39ec
treef64298291240cb67270966e64977afaad7bec6f5
parent461488f9b3e679f694b452a6bc5bacebba65c8a2
Bluetooth: Proper shutdown ERTM when closing the channel

Fix a crash regarding the Monitor Timeout, it was running even after the
shutdown of the ACL connection, which doesn't make sense.

The same code also fixes another issue, before this patch L2CAP was sending
many Disconnections Requests while we have to send only one.

The issues are related to each other, a expired Monitor Timeout can
trigger a Disconnection Request and then we may have a crash if the link
was already deleted.

Signed-off-by: Gustavo F. Padovan <padovan@profusion.mobi>
Signed-off-by: Marcel Holtmann <marcel@holtmann.org>
net/bluetooth/l2cap.c