mirror of
https://github.com/opnsense/src.git
synced 2026-05-28 04:12:45 -04:00
MFC r352620, MFS12 r352892:
Fix destruction of the robust mutexes. Approved by: re (gjb)
This commit is contained in:
parent
9b5a0a89c8
commit
7a6f726ddc
1 changed files with 5 additions and 1 deletions
|
|
@ -474,7 +474,11 @@ _thr_mutex_destroy(pthread_mutex_t *mutex)
|
|||
if (m == THR_PSHARED_PTR) {
|
||||
m1 = __thr_pshared_offpage(mutex, 0);
|
||||
if (m1 != NULL) {
|
||||
mutex_assert_not_owned(_get_curthread(), m1);
|
||||
if ((uint32_t)m1->m_lock.m_owner !=
|
||||
UMUTEX_RB_OWNERDEAD) {
|
||||
mutex_assert_not_owned(
|
||||
_get_curthread(), m1);
|
||||
}
|
||||
__thr_pshared_destroy(mutex);
|
||||
}
|
||||
*mutex = THR_MUTEX_DESTROYED;
|
||||
|
|
|
|||
Loading…
Reference in a new issue