Commit 0fd936b4 authored by Jeremy Soller's avatar Jeremy Soller

pthread_mutex_unlock: Return EINVAL when given NULL mutex

parent cf594e68
......@@ -60,6 +60,10 @@ pthread_mutex_unlock (pthread_mutex_t * mutex)
* Let the system deal with invalid pointers.
if (*mutex == NULL)
return EINVAL;
mx = *mutex;
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment