summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJason Evans <jasone@FreeBSD.org>2017-05-14 17:10:55 +0000
committerJason Evans <jasone@FreeBSD.org>2017-05-14 17:10:55 +0000
commite01ea25be56f54ae029c8ac7b4fd80c36c113dc6 (patch)
tree62d35abfe7d18e2348b2c3ef1d17e7620bbbe935
parentc95ad43c19bf16f08c6dba16c2123577d5415f87 (diff)
Notes
-rw-r--r--lib/libthr/thread/thr_mutex.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/libthr/thread/thr_mutex.c b/lib/libthr/thread/thr_mutex.c
index da53c851e5113..877bd37fe88ba 100644
--- a/lib/libthr/thread/thr_mutex.c
+++ b/lib/libthr/thread/thr_mutex.c
@@ -631,7 +631,7 @@ __pthread_mutex_trylock(pthread_mutex_t *mutex)
} /* else {} */
if (robust)
_mutex_leave_robust(curthread, m);
- if ((ret == 0 || ret == EOWNERDEAD) &&
+ if (ret != 0 && ret != EOWNERDEAD &&
(m->m_flags & PMUTEX_FLAG_PRIVATE) != 0)
THR_CRITICAL_LEAVE(curthread);
return (ret);