zephyr/subsys/bluetooth/host
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
..
a2dp_internal.h
a2dp.c
addr.c
adv.c Bluetooth: Host: Adds periodic advertising min/max interval macros 2021-04-23 15:01:32 +02:00
adv.h Bluetooth: host: Refactor out advertiser roles from hci_core to adv 2021-03-15 16:51:51 +02:00
aes_ccm.c
at.c
at.h
att_internal.h
att.c Bluetooth: Align error handling of send functions 2021-04-20 18:20:04 -04:00
avdtp_internal.h
avdtp.c Bluetooth: Align error handling of send functions 2021-04-20 18:20:04 -04:00
br.c coccinelle: Remove extra semicolon 2021-03-25 11:35:30 -05:00
br.h Bluetooth: host: Refactor out BR/EDR from hci_core to br 2021-03-15 16:51:51 +02:00
buf.c
CMakeLists.txt Bluetooth: host: Refactor out BR/EDR from hci_core to br 2021-03-15 16:51:51 +02:00
conn_internal.h Bluetooth: Align error handling of send functions 2021-04-20 18:20:04 -04:00
conn.c Bluetooth: Align error handling of send functions 2021-04-20 18:20:04 -04:00
crypto.c
crypto.h
direction_internal.h
direction.c Bluetooth: host: Refactor command state set handling to one function 2021-03-15 16:51:51 +02:00
ecc.c Bluetooth: Fix callback handling in ECC Public Key generation 2021-04-09 13:27:24 +02:00
ecc.h Bluetooth: Fix callback handling in ECC Public Key generation 2021-04-09 13:27:24 +02:00
gatt_internal.h
gatt.c Bluetooth: GATT: Extend GATT notify/indicate security check with auth 2021-04-27 13:30:44 -04:00
hci_common.c
hci_core.c Bluetooth: host: Fix BT_LOG_SNIFFER_INFO option without BT_SMP enabled 2021-03-25 07:23:52 -04:00
hci_core.h bluetooth: Add flag to force device name to appear in AD data 2021-04-20 18:19:30 -04:00
hci_ecc.c
hci_ecc.h
hci_raw_internal.h
hci_raw.c
hfp_hf.c
hfp_internal.h
id.c Bluetooth: host: Fix undefined reference to bt_le_adv_lookup_legacy 2021-04-23 15:30:40 +03:00
id.h Bluetooth: host: Refactor out identity handling from hci_core to id 2021-03-15 16:51:51 +02:00
iso_internal.h Bluetooth: host: Validate big_handle before using it as an array index 2021-03-30 08:17:22 -04:00
iso.c Bluetooth: ISO: Improved text for setting ISO data paths 2021-05-03 11:59:25 +02:00
Kconfig driver: esp32: add bluetooth support 2021-04-30 16:51:30 -04:00
Kconfig.gatt Bluetooth: Host: Add a configuration for writable name 2021-03-26 15:31:29 -04:00
Kconfig.l2cap
keys_br.c Bluetooth: host: Fix compilation error with BR/EDR enabled 2021-03-15 16:51:51 +02:00
keys.c
keys.h
l2cap_br.c Bluetooth: host: Fix buffer leak trying to send when disconnected 2021-05-03 16:45:53 +02:00
l2cap_internal.h Bluetooth: host: Fix buffer leak trying to send when disconnected 2021-05-03 16:45:53 +02:00
l2cap.c Bluetooth: host: Fix buffer leak trying to send when disconnected 2021-05-03 16:45:53 +02:00
monitor.c
monitor.h
rfcomm_internal.h
rfcomm.c Bluetooth: Align error handling of send functions 2021-04-20 18:20:04 -04:00
scan.c Bluetooth: host: Fix typo in PA defines and missing min check 2021-04-21 20:41:17 -04:00
scan.h Bluetooth: host: Refactor out scan roles from hci_core to scan 2021-03-15 16:51:51 +02:00
sdp_internal.h
sdp.c Bluetooth: Align error handling of send functions 2021-04-20 18:20:04 -04:00
settings.c
settings.h
smp_null.c Bluetooth: host: Fix buffer leak trying to send when disconnected 2021-05-03 16:45:53 +02:00
smp.c Bluetooth: host: Fix buffer leak trying to send when disconnected 2021-05-03 16:45:53 +02:00
smp.h Bluetooth: SMP: Adds Kconfig for minimum encryption key size 2021-04-02 16:46:18 +03:00
ssp.c Bluetooth: host: Align SSP HCI event handler function names 2021-03-15 16:51:51 +02:00
ssp.h
testing.c
testing.h
uuid.c