From 391df78ad4e649ebe884be2756eef6c49980915e Mon Sep 17 00:00:00 2001 From: Mateusz Guzik Date: Wed, 4 Jan 2017 02:25:31 +0000 Subject: [PATCH] mtx: plug open-coded mtx_lock access missed in r311172 --- sys/kern/kern_mutex.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/sys/kern/kern_mutex.c b/sys/kern/kern_mutex.c index fb8823767bcc..2ca178110efb 100644 --- a/sys/kern/kern_mutex.c +++ b/sys/kern/kern_mutex.c @@ -545,7 +545,7 @@ __mtx_lock_sleep(volatile uintptr_t *c, uintptr_t tid, int opts, m->lock_object.lo_name); do { lock_delay(&lda); - v = m->mtx_lock; + v = MTX_READ_VALUE(m); owner = lv_mtx_owner(v); } while (v != MTX_UNOWNED && TD_IS_RUNNING(owner)); KTR_STATE0(KTR_SCHED, "thread",