diff options
Diffstat (limited to 'libs/pthreads/src/pthread_mutex_unlock.c')
-rw-r--r-- | libs/pthreads/src/pthread_mutex_unlock.c | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/libs/pthreads/src/pthread_mutex_unlock.c b/libs/pthreads/src/pthread_mutex_unlock.c index 3d65d1a957..77175bb5da 100644 --- a/libs/pthreads/src/pthread_mutex_unlock.c +++ b/libs/pthreads/src/pthread_mutex_unlock.c @@ -50,6 +50,9 @@ pthread_mutex_unlock (pthread_mutex_t * mutex) */ mx = *mutex; + if (mx == NULL) { + return EINVAL; + } /* * If the thread calling us holds the mutex then there is no |