zephyr/subsys/bluetooth/services/ots
Pirun Lee 008a82e3ba Bluetooth: OTS: Fix memory leak while procedure is not finished
cur_inst is the copy of ots_client instance to prevent duplicate
API call while client is in middle of read/write procedure.
But cur_inst can only be cleared while write_obj_tx_done or read rx_done.
If ACL is disconnected while read/write is on-going, there is no chance
for cur_inst being cleared.
This causes ots client will no longer perform select/read/write
procedure anymore. API will always return -EBUSY.

Let l2cap_disconnect check if cur_inst is NULL and NULL it
unconditionally as what it is designed.

Make bt_ots_client_unregister public API.

Signed-off-by: Pirun Lee <pirun.lee@nordicsemi.no>
2023-09-11 19:55:56 +02:00
..
CMakeLists.txt
Kconfig Bluetooth: BT_OTS_OACP_CHECKSUM_SUPPORT implies CRC support 2023-08-18 08:52:16 +03:00
ots_client_internal.h
ots_client.c Bluetooth: OTS: Fix memory leak while procedure is not finished 2023-09-11 19:55:56 +02:00
ots_dir_list_internal.h sys: util: migrate all files to DIV_ROUND_UP 2023-04-11 12:00:37 +02:00
ots_dir_list.c Bluetooth: OTS: Add explicit ignore of ret error when reset dir_list 2023-07-04 09:30:01 +02:00
ots_internal.h Bluetooth: Services: Add macro for verifying OTS object ID 2023-04-07 11:29:54 +02:00
ots_l2cap_internal.h
ots_l2cap.c bluetooth: host: fix few mismatched CONTAINER_OF 2023-08-30 10:22:37 +02:00
ots_oacp_internal.h
ots_oacp.c Bluetooth: OTS: Fix coverity issue 2023-06-02 18:57:44 -04:00
ots_obj_manager_internal.h
ots_obj_manager.c Bluetooth: Services: Add macro for verifying OTS object ID 2023-04-07 11:29:54 +02:00
ots_olcp_internal.h
ots_olcp.c Bluetooth: Services: Add macro for verifying OTS object ID 2023-04-07 11:29:54 +02:00
ots.c bluetooth: ots: Fix bt_ots_init paramter struct naming 2023-06-30 16:06:08 +02:00