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 misc: Replace assert include and calls by sys/__assert.h equivalent 2020-10-02 11:42:40 +02:00
addr.c Bluetooth: host: Refactor out address handling to new file 2020-11-26 13:15:03 +01:00
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 Bluetooth: host: Release ATT request buffers once sent 2021-02-11 12:59:01 -05:00
att.c Bluetooth: Align error handling of send functions 2021-04-20 18:20:04 -04:00
avdtp_internal.h Bluetooth: host: Use CONFIG_BT_L2CAP_RX_MTU always to set L2CAP RX MTU 2020-08-06 11:46:48 +02:00
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 Bluetooth: Seperate BT_ISO and BT_AUDIO 2021-02-15 08:01:34 -05:00
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 Bluetooth: host: Add DF to initalization sequence 2021-01-05 09:38:53 +01:00
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 Bluetooth: Move implementation of hci_driver.h exposed functions 2020-07-27 13:27:05 +02:00
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 Bluetooth: host: Log security keys needed by sniffer 2021-03-04 14:20:25 +02:00
hci_ecc.h Bluetooth: Refactor ECC emulation supported commands bits 2021-02-18 13:50:22 +01:00
hci_raw_internal.h
hci_raw.c Bluetooth: hci_raw: Move BT_ISO to common Kconfig and fix ISO buffers 2021-02-15 08:01:34 -05:00
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 Bluetooth: L2CAP: Enable L2CAP dynamic channels without Enhanced CBFC 2020-11-09 11:25:10 +01:00
keys_br.c Bluetooth: host: Fix compilation error with BR/EDR enabled 2021-03-15 16:51:51 +02:00
keys.c Bluetooth: host: Log security keys needed by sniffer 2021-03-04 14:20:25 +02:00
keys.h Bluetooth: host: Log security keys needed by sniffer 2021-03-04 14:20:25 +02:00
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 logging: Add backend parameter to the init function 2021-03-12 09:24:54 -05:00
monitor.h Bluetooth: monitor: Add support for ISO packets 2020-09-04 21:03:13 +02:00
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 Bluetooth: host: Split SSP to it's own module 2020-08-11 19:32:35 +02:00
testing.c Bluetooth: Mesh: Move Replay Protect to seperate module 2020-10-01 16:20:24 +03:00
testing.h
uuid.c bluetooth: host: Fix endianness issue in bt_uuid_to_str 2020-10-21 12:16:17 +03:00