Skip to content
Commit 9867ac2a authored by Maksim Masalski's avatar Maksim Masalski Committed by Kumar Gala
Browse files

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: default avatarMaksim Masalski <maksim.masalski@intel.com>
parent 9b7d9d43
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please to comment