zephyr/subsys
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
..
bluetooth Bluetooth: host: Fix buffer leak trying to send when disconnected 2021-05-03 16:45:53 +02:00
canbus canbus: isotp: prevent race-condition during debugging 2021-04-06 16:44:34 -04:00
console kernel: sem: add K_SEM_MAX_LIMIT 2021-03-05 08:13:53 -06:00
cpp
debug debug: Allow spin lock validation only with multithreading 2021-04-29 14:50:35 +02:00
demand_paging mmu: backing stores reserve page fault room 2021-01-23 19:47:23 -05:00
dfu dfu: mcuboot: Remove definitions available via bootutil_public.h 2021-03-25 07:08:01 -04:00
disk include: move disk_access.h to storage 2021-03-23 12:16:01 +01:00
emul include: Move emul.h to drivers/emul.h 2021-04-22 12:51:01 -04:00
fb
fs fs/nvs: document flash wbs migration capability 2021-04-30 12:27:27 +02:00
ipc ipc: rpmsg_service: switch to new work API 2021-04-21 11:53:19 -05:00
jwt jwt: use pre-computed JWT header 2021-04-03 06:52:40 -04:00
logging net: openthread: Align with the new NCP API 2021-04-30 12:55:02 -05:00
lorawan lorawan: port oriented downlink callbacks 2021-04-30 13:05:10 -05:00
mgmt power: move reboot functionality to os lib 2021-04-28 20:34:00 -04:00
modbus subsys/modbus: Fix potential memory overwrite (coverity) 2021-04-01 04:52:10 -04:00
net net: openthread: Init NCP after USB communication is established 2021-04-30 12:58:31 -05:00
portability portability: move cmsis api headers 2021-04-20 08:45:05 -04:00
power power: move reboot functionality to os lib 2021-04-28 20:34:00 -04:00
random random: rand32_timer: Avoid alignment faults by using memcpy 2021-04-16 15:34:59 -04:00
settings settings: Handle unhandled error 2021-02-03 08:37:11 -05:00
shell power: move reboot functionality to os lib 2021-04-28 20:34:00 -04:00
stats
storage storage/stream: Add persistent write progress to stream_flash 2021-04-23 15:01:32 -05:00
task_wdt power: move reboot functionality to os lib 2021-04-28 20:34:00 -04:00
testsuite arm64: FPU context switching support 2021-05-03 11:56:50 +02:00
timing timing: add kconfig CONFIG_TIMING_FUNCTIONS_NEED_AT_BOOT 2021-04-06 16:43:55 -04:00
tracing tracing: remove cpu_stats in favor of thread runtime stats 2021-04-16 15:31:24 -04:00
usb usb: netusb: rndis: fix a typo 2021-05-01 14:17:39 -04:00
CMakeLists.txt portability: move cmsis APIs to subsys/portability 2021-04-20 08:45:05 -04:00
Kconfig portability: move cmsis APIs to subsys/portability 2021-04-20 08:45:05 -04:00