zephyr/subsys
Robert Lubos 279de669b5 net: lwm2m: Stop the LwM2M engine in case of fatal network error
In case of fatal network error (i.e. when the LwM2M client runs out of
retries), call lwm2m_engine_stop() to cleanup any allocated resources
for the client. The engine is dead at that point anyway so the
application needs to recover.

If this isn't done, it is theoretically possible to restart the LwM2M
client (with lwm2m_rd_client_start() which does not report an error in
such case), which in turn could lead to resource leaks (like for
example the observer list is reinitialized) if the application
didn't call lwm2m_rd_client_stop() first. Calling lwm2m_engine_stop()
ensures that all resources are freed even if the application doesn't
call stop before restarting.

Stopping the engine is also needed when the network error occurs when
de-registering - in such case the engine goes straight into the IDLE
state, where it's possible to restart the client and thus reinitialize
the observer lists.

Signed-off-by: Robert Lubos <robert.lubos@nordicsemi.no>
2025-07-29 11:18:36 +01:00
..
bindesc bindesc: fix typo in errno (ENONET->ENOENT) 2025-06-20 13:21:39 -04:00
bluetooth Bluetooth: CCP: Check conn type before access by index 2025-07-28 16:45:17 -04:00
canbus kconfig: fix typo in (soc, subsys) 2025-07-01 10:58:54 -10:00
console
dap
debug gdb: fix compilation failures 2025-07-21 13:03:30 -04:00
demand_paging
dfu dfu: img_util: Upload to slot0 if not running from slot0 2025-07-19 15:45:53 -04:00
disk
dsp
emul
fb cfb: added API for drawing a circle 2025-06-26 22:09:48 -05:00
fs fs: shell: Fix FS shell using fixed storage_partition name instead of DT 2025-07-24 02:48:22 -04:00
gnss gnss: rtk: Add basic integration 2025-07-21 09:19:14 -04:00
input input: Fix function signature of input_thread 2025-06-18 07:41:25 +02:00
ipc ipc_service: ipc_icbmsg: fix unchecked error in icmsg_open() 2025-07-11 13:15:04 -10:00
jwt
llext llext: only invalidate instruction cache where needed 2025-07-23 09:32:34 +02:00
logging kconfig: fix typo in (soc, subsys) 2025-07-01 10:58:54 -10:00
lorawan
mem_mgmt
mgmt net: Fix alignment error with net_ipaddr_copy() 2025-07-04 13:16:32 -05:00
modbus modbus: fix Apache-2.0 SPDX License identifier case 2025-06-11 10:23:46 -07:00
modem modem: pipelink: silence warning in modem_pipelink_is_connected 2025-07-24 02:45:22 -04:00
net net: lwm2m: Stop the LwM2M engine in case of fatal network error 2025-07-29 11:18:36 +01:00
pm pm: Fix to prevent incorrect forever timeout 2025-07-19 13:27:08 -04:00
pmci pmci: mctp: I2C+GPIO Target binding 2025-07-19 09:53:21 +02:00
portability
profiling
random
retention
rtio rtio: Fix syscall verify misra-c:2004 12.4 issue 2025-07-25 08:09:41 -04:00
sd sd: fix incorrect error logging 2025-06-05 15:02:15 -05:00
secure_storage secure_storage: its: transform: improve expandability 2025-05-27 15:46:37 +02:00
sensing
settings settings: Add retention backend 2025-07-21 07:23:29 -04:00
shell shell: Restore uninit_cb that was lost in #93154 2025-07-25 17:02:31 +01:00
sip_svc
stats
storage storage: flash_map: Add support for sub-partitions 2025-06-11 10:13:56 -07:00
task_wdt
testsuite crypto: remove deprecated tinycrypt 2025-07-24 02:48:32 -04:00
timing
tracing tracing: ctf: trace k_sleep() 2025-07-25 23:29:14 +02:00
usb subsystem: usb: device_next: Fix unchecked return value in usbd_cdc_ecm 2025-07-29 11:18:20 +01:00
zbus zbus: add user-configurable HEAP_MEM_POOL_ADD_SIZE_ZBUS 2025-07-19 09:56:21 +02:00
CMakeLists.txt gnss: rtk: Add basic integration 2025-07-21 09:19:14 -04:00
Kconfig gnss: rtk: Add basic integration 2025-07-21 09:19:14 -04:00