zephyr/subsys/bluetooth
Joakim Andersson 80e5295dca Bluetooth: host: Fix buffer leak trying to send when disconnected
Fix buffer leak in L2CAP and SMP when attempting to send over a
a connection that has been disconnected.
Both L2CAP and SMP now have ownership of the buffer in case of failure
to send it and need to unref it in case of send failure.

Change the return type of bt_l2cap_send since the user of this function
has to handle releasing of the buffer when this fails.

Regression from: a77f809faa47ff9922692d2b4eab33062b8a2b4d

Signed-off-by: Joakim Andersson <joakim.andersson@nordicsemi.no>
2021-05-03 16:45:53 +02:00
..
audio Bluetooth: Audio: VOCS add error checks on read 2021-04-27 13:31:06 -04:00
common bluetooth: Allow immediate logging with software-based LL 2020-09-04 18:48:32 +02:00
controller Bluetooth: controller: radio: Add API to configure CTE Rx 2021-04-30 11:07:55 +02:00
host Bluetooth: host: Fix buffer leak trying to send when disconnected 2021-05-03 16:45:53 +02:00
mesh Bluetooth: Mesh: Allow to be NODE when PROVISIONER is enabled 2021-04-29 09:52:35 -04:00
services Bluetooth: services: Adds OTS name length checks 2021-04-22 11:32:25 +02:00
shell Bluetooth: shell: Mark BIGinfo reports more clearly in the shell 2021-05-03 11:59:25 +02:00
CMakeLists.txt Bluetooth: Audio: Volume Offset Control Service and Client 2021-03-22 13:05:56 -04:00
Kconfig driver: esp32: add bluetooth support 2021-04-30 16:51:30 -04:00