Skip to content
Commit c327cddd authored by Michael Knudsen's avatar Michael Knudsen Committed by Johan Hedberg
Browse files

Bluetooth: Stop BCSP/H5 timer before cleaning up



When stopping BCSP/H5, stop the retransmission timer before proceeding
to clean up packet queues.  The previous code had a race condition where
the timer could trigger after the packet lists and protocol structure
had been removed which led to dereferencing NULL or use-after-free bugs.

Signed-off-by: default avatarMichael Knudsen <m.knudsen@samsung.com>
Reported-by: default avatarKirill Tkhai <ktkhai@parallels.com>
Signed-off-by: default avatarJohan Hedberg <johan.hedberg@intel.com>
parent 81ad6fd9
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment