zephyr/doc/connectivity/bluetooth/api
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
..
audio Bluetooth: Audio: Fix bad/missing groups for LE Audio APIs 2024-09-20 11:08:07 +02:00
mesh Bluetooth: Mesh: Add prefix to Subnet Bridge API 2024-10-02 14:54:13 +01:00
shell docs: Bluetooth: Audio: Move audio related files to subdir 2024-05-02 16:51:03 +02:00
att.rst
connection_mgmt.rst bluetooth: host: conn: Check if *conn is not NULL 2024-10-18 17:46:04 +01:00
controller.rst
crypto.rst
data_buffer.rst
gap.rst
gatt.rst doc: Fix occurrences of repeated words 2023-11-15 17:34:39 -05:00
hci_drivers.rst
hci_raw.rst
hci.txt
hfp.rst
index.rst docs: Bluetooth: Audio: Move audio related files to subdir 2024-05-02 16:51:03 +02:00
l2cap.rst
mesh.rst docs: Bluetooth: Mesh: add Subnet Bridge doc 2024-09-17 05:22:32 -04:00
rfcomm.rst
sdp.rst
services.rst bluetooth: services: added current time service 2024-08-29 11:38:28 +02:00
uuid.rst