Skip to content
Commit 18c35711 authored by Jonathan Rico's avatar Jonathan Rico Committed by Maureen Helm
Browse files

Bluetooth: conn: check for disconnected earlier when sending



Verify the connection is active before popping the buffer from the TX
queue.

The current behavior enables a race condition between `create_frag` and
the connection being torn down, as `buf` can be popped from the TX queue
but not destroyed by `bt_conn_process_tx`.

In that case, `buf` will be leaked.

Original analysis and fix proposal by @watsug.

Signed-off-by: default avatarJonathan Rico <jonathan.rico@nordicsemi.no>
Reported-by: default avatarAdam <Augustyn&lt;watsug@gmail.com>
parent 838f3349
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please to comment