zephyr/lib/posix
Maksim Masalski 9867ac2a40 posix: pthread_exit: check for null before dereferencing
In a primitive SYS_SLIST_FOR_EACH_NODE check for null was
after dereferencing. Place check for null of the "thread_spec_data"
before its dereferencing.

Found as a coding guideline violation (MISRA R4.1) by static
coding scanning tool.

Signed-off-by: Maksim Masalski <maksim.masalski@intel.com>
2021-05-27 09:07:57 -05:00
..
clock.c posix: clock: nanosecond resolution 2021-01-22 12:37:58 -05:00
CMakeLists.txt cmake: fix include directories to work with out-of-tree arch 2020-08-05 08:06:07 -04:00
eventfd.c lib: posix: eventfd: Fix use of 'struct k_spinlock_key' 2020-10-07 08:11:25 -04:00
fs.c lib/posix/fs: Add fs_dir_t type variable initialization 2021-02-05 07:32:20 -05:00
Kconfig lib: posix: Update to new timeout API 2020-05-08 17:31:45 +02:00
mqueue.c lib/posix: SPARC newlib has unsigned short mode_t 2020-11-13 14:53:55 -08:00
nanosleep.c lib: posix: nanosleep: round up to the nearest microsecond 2020-10-02 11:31:43 +02:00
pthread.c posix: pthread_exit: check for null before dereferencing 2021-05-27 09:07:57 -05:00
pthread_barrier.c all: Update reserved function names 2019-03-11 13:48:42 -04:00
pthread_common.c zephyr: replace zephyr integer types with C99 types 2020-06-08 08:23:57 -05:00
pthread_cond.c zephyr: replace zephyr integer types with C99 types 2020-06-08 08:23:57 -05:00
pthread_key.c posix: add pthread_key and pthread_once APIs 2018-07-19 08:46:33 -04:00
pthread_mutex.c kernel: fix race conditions with z_ready_thread 2021-03-03 13:54:47 -05:00
pthread_rwlock.c zephyr: replace zephyr integer types with C99 types 2020-06-08 08:23:57 -05:00
pthread_sched.c lib: posix: Move posix layer from 'kernel' to 'lib' 2018-04-05 16:43:05 -04:00
semaphore.c lib: posix: unchecked return value while taking semaphore 2020-10-21 06:26:11 -05:00
sleep.c timeout: Fix up API usage 2020-03-31 19:40:47 -04:00
timer.c posix: timer: match implementation to declaration 2021-03-29 07:52:42 -04:00