commit | 1051607c7c0aa6b77fd9f5933a8ca1da938ffc90 | [log] [tgz] |
---|---|---|
author | Jonathan Rico <jonathan.rico@nordicsemi.no> | Mon Sep 26 09:56:46 2022 +0200 |
committer | Fabio Baltieri <fabio.baltieri@gmail.com> | Mon Sep 26 15:13:13 2022 +0000 |
tree | fe926b8537cbbbd7e4fc87be7186988740e0dfbf | |
parent | 4ced8de50c797f44871c34d74bb36a0b51f53411 [diff] |
Bluetooth: l2cap: prevent deadlock on chan timeout When getting a channel timeout, l2cap_chan_destroy is called from the rtx_work work item. In that function we attempted to cancel the current work item, and sync on it being cancelled. The kernel API says that this will block until the work item completes execution, hence a deadlock. Signed-off-by: Jonathan Rico <jonathan.rico@nordicsemi.no>