zephyr/subsys
Pavel Vasilyev 8acb1cc577 bluetooth: host: conn: Check if *conn is not NULL
This commit adds a warning and a Kconfig option to `bt_conn_le_create`
and `bt_conn_le_create_synced` functions which are meant to warn a user
of a potential leakage of an active connection object.

This change is implemented due to frequent incorrect use of the
connection pointer where a pointer to an existing connection object
is overwritten by `bt_conn_le_create` and `bt_conn_le_create_synced`
functions which in turns leads to sporadic critical bugs. See
https://github.com/zephyrproject-rtos/zephyr/pull/78284#discussion_r1754304535
for more details.

The Kconfig option is introduced instead of always returning the error
to not affect current implementations. However, it is recommended to
keep this option enabled to avoid potential bugs.

Signed-off-by: Pavel Vasilyev <pavel.vasilyev@nordicsemi.no>
2024-10-18 17:46:04 +01:00
..
bindesc bindesc: Add support for reading binary descriptors 2024-10-11 13:20:49 -04:00
bluetooth bluetooth: host: conn: Check if *conn is not NULL 2024-10-18 17:46:04 +01: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 susbys/dfu/img_util: refined ERASE PROGRESSIVELY implementation 2024-10-18 08:19:28 -04:00
disk disk: disk_access: changed mutex for a spinlock 2024-08-26 17:26:36 -04:00
dsp
emul
fb
fs fs: fatfs: additional ELM FAT options 2024-10-11 13:20:08 -04: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: log_cmds: Enable log commands for shell with the logging frontend 2024-10-17 10:48:25 -04:00
lorawan lorawan: unify logging level 2024-10-16 09:59:01 +02:00
mem_mgmt
mgmt ITE: it8xxx2: Remove CONFIG_PINCTRL from soc defconfig file 2024-10-15 13:52:55 +02: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: add initial prometheus client library 2024-10-18 14:17:11 +02: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 random: sys_csrand_get backend for TEST_RANDOM_GENERATOR 2024-10-16 10:00:47 +02:00
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 shell: Allow custom shell log backend implementation 2024-10-17 10:48:25 -04: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: add named event trace 2024-10-17 10:46:52 -04:00
usb usb: device_next: NCM driver for usb-next 2024-10-17 15:38:00 -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