summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorkib <kib@FreeBSD.org>2017-11-11 12:08:07 +0000
committerkib <kib@FreeBSD.org>2017-11-11 12:08:07 +0000
commitda8137aa0953e043abe072f58ba0250a10940439 (patch)
tree18d7ac1e5394d9a938cec62cb2499e0f8073f0b9
parente84aae2948262ee900a4736a9f92bdf4c5196981 (diff)
downloadFreeBSD-src-da8137aa0953e043abe072f58ba0250a10940439.zip
FreeBSD-src-da8137aa0953e043abe072f58ba0250a10940439.tar.gz
MFC r325386:
Convert explicit panic() call to assert.
-rw-r--r--sys/kern/kern_umtx.c3
1 files changed, 1 insertions, 2 deletions
diff --git a/sys/kern/kern_umtx.c b/sys/kern/kern_umtx.c
index c33d00c..b549c1e 100644
--- a/sys/kern/kern_umtx.c
+++ b/sys/kern/kern_umtx.c
@@ -1577,8 +1577,7 @@ umtx_pi_setowner(struct umtx_pi *pi, struct thread *owner)
uq_owner = owner->td_umtxq;
mtx_assert(&umtx_lock, MA_OWNED);
- if (pi->pi_owner != NULL)
- panic("pi_owner != NULL");
+ MPASS(pi->pi_owner == NULL);
pi->pi_owner = owner;
TAILQ_INSERT_TAIL(&uq_owner->uq_pi_contested, pi, pi_link);
}
OpenPOWER on IntegriCloud