From fd2c0954e12021f14a2b4107b34431c4b4e2bc70 Mon Sep 17 00:00:00 2001 From: markj Date: Fri, 28 Aug 2015 00:06:31 +0000 Subject: MFC r285252: Fix an incorrect assertion in witness. --- sys/kern/subr_witness.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'sys/kern') 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]; /* -- cgit v1.1