Skip to content
Commit e65fdd4c authored by Herman Berget's avatar Herman Berget Committed by Fabio Baltieri
Browse files

Bluetooth: Host: Clean up buffer user data in case of error



`bt_l2cap_chan_send_cb()` overwrote the buffer user data for internal
use. In the case where sending fails, this would be visible for the
caller. If the caller relied on the buffer user data to be unchanged,
this could cause unexpected behavior.

L2CAP tx metadata was also not freed in the error case.

Signed-off-by: default avatarHerman Berget <herman.berget@nordicsemi.no>
parent c59178b6
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please to comment