The new fd entry should be reserved by incrementing its reference count in z_reserve_fd() instead of z_finalize_fd() in order to avoid having the same one being returned in a concurrent call. If for some reason the fd is not finalized after z_reserve_fd() is called, it can be freed via z_free_fd(), which would decrement the reference count. Fixes #27721 Signed-off-by: Vincent Wan <vwan@ti.com> |
||
|---|---|---|
| .. | ||
| cmsis_rtos_v1 | ||
| cmsis_rtos_v2 | ||
| fnmatch | ||
| gui | ||
| libc | ||
| open-amp | ||
| os | ||
| posix | ||
| CMakeLists.txt | ||
| Kconfig | ||