zephyr/subsys
Pavel Vasilyev 74972e694b bluetooth: host: l2cap: Check conn state before queueing PDU
In case of UATT, if a connection was lost while user was holding a read
or write attribute callback, `bt_l2cap_send_pdu` (called from
`att.c::chan_send`) will anyway queue a PDU and trigger tx work. The PDU
won't be sent eventually, but neither will hold an error code, which
will allow it to bypass the error check in `att_on_sent_cb` and call
`att_sent` function.

For EATT `bt_l2cap_chan_send` is used which already handles this case
and the error code is passed to `att_on_sent_cb`.

This change adds connection state check to `bt_l2cap_send_pdu`
preventing from unnecessary code execution when connection does not
exist anymore.

Signed-off-by: Pavel Vasilyev <pavel.vasilyev@nordicsemi.no>
2024-10-10 14:59:02 -04:00
..
bindesc bindesc: Add support for the build version values 2024-09-04 07:03:47 -04:00
bluetooth bluetooth: host: l2cap: Check conn state before queueing PDU 2024-10-10 14:59:02 -04:00
canbus lib: net_buf: rename header file from zephyr/net/buf.h to zephyr/net_buf.h 2024-09-07 11:19:05 -05:00
console
dap
debug debug: mipi_stp_decoder: Avoid potential 64bit unaligned access 2024-10-09 13:45:04 +02:00
demand_paging demand_paging: add a semihosting based backing store for on-demand sections 2024-09-11 20:18:51 -04:00
dfu dfu: Add missing depends on for progressive erase 2024-10-01 09:46:18 +02:00
disk disk: disk_access: changed mutex for a spinlock 2024-08-26 17:26:36 -04:00
dsp
emul
fb
fs fs: nvs: streamline rc return logic 2024-10-08 16:57:49 +02:00
input input: double tap 2024-08-19 09:56:26 -04:00
ipc ipc: icmsg: Check return error of pbuf_rx_init() 2024-10-02 10:09:18 +02:00
jwt jwt: reshape and add alternative for ECDSA using PSA 2024-10-08 18:10:32 -04:00
llext llext: Add RISC-V arch-specific relocations 2024-10-03 21:59:42 +01:00
logging logging: Fix LOG_OUTPUT dependency 2024-10-09 18:37:49 +01:00
lorawan
mem_mgmt
mgmt mgmt: hawkbit: move HAWKBIT_JSON_URL 2024-10-09 18:10:30 +01:00
modbus modbus: fix support for floating point values 2024-10-08 17:01:19 +02:00
modem modem: cmux: replace crc8 with crc8_rohc for FCS calculation 2024-10-09 09:48:00 +02:00
net net: sockets: Move msghdr_non_empty_iov_count() to common file 2024-10-09 18:37:58 +01:00
pm zephyr: bulk update to DT_NODE_HAS_STATUS_OKAY 2024-10-03 17:06:52 +01:00
portability
profiling style: subsys: comply with MISRA C:2012 Rule 15.6 2024-09-11 07:40:35 -04:00
random
retention
rtio rtio: Split the rx and tx buffer unions 2024-08-17 08:55:01 -04:00
sd sd: resend CMD0 before each CMD8 2024-08-27 15:14:23 -04:00
secure_storage secure_storage: introduce the secure storage subsystem 2024-10-07 13:38:43 +02:00
sensing
settings
shell net: socket_service: remove work_q parameter 2024-10-09 13:48:54 +02:00
sip_svc
stats
storage
task_wdt
testsuite Ztest: Including the missing C standard library header 2024-10-08 06:00:45 -04:00
timing
tracing tracing: Fix sysview for soc families not subdivided into series 2024-10-06 20:51:27 +01:00
usb usb: device_next: USB reset clears remote wakeup permission 2024-10-08 05:59:29 -04:00
zbus zbus: optional publishing statistics 2024-10-10 14:57:13 -04:00
CMakeLists.txt secure_storage: introduce the secure storage subsystem 2024-10-07 13:38:43 +02:00
Kconfig secure_storage: introduce the secure storage subsystem 2024-10-07 13:38:43 +02:00