summaryrefslogtreecommitdiffstats
path: root/sys/kern
diff options
context:
space:
mode:
authormarkj <markj@FreeBSD.org>2015-08-28 00:06:31 +0000
committermarkj <markj@FreeBSD.org>2015-08-28 00:06:31 +0000
commitfd2c0954e12021f14a2b4107b34431c4b4e2bc70 (patch)
treeb2cbe7292dd507cd30a02b2839dda06cb2457650 /sys/kern
parentfecd3bf6418c11c432108835528c5f56ffd2e8a9 (diff)
downloadFreeBSD-src-fd2c0954e12021f14a2b4107b34431c4b4e2bc70.zip
FreeBSD-src-fd2c0954e12021f14a2b4107b34431c4b4e2bc70.tar.gz
MFC r285252:
Fix an incorrect assertion in witness.
Diffstat (limited to 'sys/kern')
-rw-r--r--sys/kern/subr_witness.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/sys/kern/subr_witness.c b/sys/kern/subr_witness.c
index 122a246..bd54f57 100644
--- a/sys/kern/subr_witness.c
+++ b/sys/kern/subr_witness.c
@@ -1221,7 +1221,7 @@ witness_checkorder(struct lock_object *lock, int flags, const char *file,
for (j = 0, lle = lock_list; lle != NULL; lle = lle->ll_next) {
for (i = lle->ll_count - 1; i >= 0; i--, j++) {
- MPASS(j < WITNESS_COUNT);
+ MPASS(j < LOCK_CHILDCOUNT * LOCK_NCHILDREN);
lock1 = &lle->ll_children[i];
/*
OpenPOWER on IntegriCloud