diff options
author | markj <markj@FreeBSD.org> | 2015-08-28 00:06:31 +0000 |
---|---|---|
committer | markj <markj@FreeBSD.org> | 2015-08-28 00:06:31 +0000 |
commit | fd2c0954e12021f14a2b4107b34431c4b4e2bc70 (patch) | |
tree | b2cbe7292dd507cd30a02b2839dda06cb2457650 | |
parent | fecd3bf6418c11c432108835528c5f56ffd2e8a9 (diff) | |
download | FreeBSD-src-fd2c0954e12021f14a2b4107b34431c4b4e2bc70.zip FreeBSD-src-fd2c0954e12021f14a2b4107b34431c4b4e2bc70.tar.gz |
MFC r285252:
Fix an incorrect assertion in witness.
-rw-r--r-- | sys/kern/subr_witness.c | 2 |
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]; /* |