zephyr/lib
Vincent Wan 0e436ed72a lib: fdtable: fix reference counting in z_reserve_fd()
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>
2020-08-27 11:42:19 +03:00
..
cmsis_rtos_v1 zephyr: replace zephyr integer types with C99 types 2020-06-08 08:23:57 -05:00
cmsis_rtos_v2 zephyr: replace zephyr integer types with C99 types 2020-06-08 08:23:57 -05:00
fnmatch ext: lib: Move fnmatch to lib/ 2020-03-20 22:56:19 -04:00
gui lib: gui: lvgl: improve cmake formatting 2020-08-26 15:32:59 -05:00
libc libc: add strtok_r implementation 2020-08-18 09:19:58 -07:00
open-amp lib: open-amp: add helper to add resource table in project 2020-04-01 09:21:15 -05:00
os lib: fdtable: fix reference counting in z_reserve_fd() 2020-08-27 11:42:19 +03:00
posix lib: fdtable: Add callback for close() calls 2020-08-14 09:47:51 -07:00
CMakeLists.txt updatehub: Move from lib to subsys:mgmt folder 2020-08-03 16:33:06 +02:00
Kconfig updatehub: Move from lib to subsys:mgmt folder 2020-08-03 16:33:06 +02:00