nuttx/libs/libc/tls
hujun5 5f92db54a6 sched: fix regression from PR #18040 by adding NULL pointer safety
Replace DEBUGASSERT checks with proper NULL pointer validation in getpid() and
task_get_info() functions. Return IDLE_PROCESS_ID or -ESRCH on NULL conditions
instead of asserting, improving robustness during early system startup and error conditions.

Signed-off-by: hujun5 <hujun5@xiaomi.com>
2026-01-23 16:59:55 +08:00
..
CMakeLists.txt libs/libc: migrate to SPDX identifier 2024-10-01 12:25:52 +08:00
Kconfig arch: default enable TLS_ALIGNED when BUILD_PROTECTED=y 2026-01-21 00:20:13 +08:00
Make.defs libs/libc: migrate to SPDX identifier 2024-10-01 12:25:52 +08:00
task_getinfo.c sched: fix regression from PR #18040 by adding NULL pointer safety 2026-01-23 16:59:55 +08:00
task_tls.c libs/libc: migrate to SPDX identifier 2024-10-01 12:25:52 +08:00
task_tls_destruct.c libc: Add debug assert to prevent tls allocation failure 2024-10-18 21:34:18 +08:00
tls_cleanup.c libs/libc: migrate to SPDX identifier 2024-10-01 12:25:52 +08:00
tls_destruct.c libs/libc: migrate to SPDX identifier 2024-10-01 12:25:52 +08:00
tls_getinfo.c libs/libc: migrate to SPDX identifier 2024-10-01 12:25:52 +08:00