Skip site navigation (1)Skip section navigation (2)
Date:      Fri, 28 Aug 2015 00:06:32 +0000 (UTC)
From:      Mark Johnston <markj@FreeBSD.org>
To:        src-committers@freebsd.org, svn-src-all@freebsd.org, svn-src-stable@freebsd.org, svn-src-stable-10@freebsd.org
Subject:   svn commit: r287231 - stable/10/sys/kern
Message-ID:  <201508280006.t7S06Wht022323@repo.freebsd.org>

next in thread | raw e-mail | index | archive | help
Author: markj
Date: Fri Aug 28 00:06:31 2015
New Revision: 287231
URL: https://svnweb.freebsd.org/changeset/base/287231

Log:
  MFC r285252:
  Fix an incorrect assertion in witness.

Modified:
  stable/10/sys/kern/subr_witness.c
Directory Properties:
  stable/10/   (props changed)

Modified: stable/10/sys/kern/subr_witness.c
==============================================================================
--- stable/10/sys/kern/subr_witness.c	Thu Aug 27 23:55:46 2015	(r287230)
+++ stable/10/sys/kern/subr_witness.c	Fri Aug 28 00:06:31 2015	(r287231)
@@ -1221,7 +1221,7 @@ witness_checkorder(struct lock_object *l
 	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];
 
 			/*



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?201508280006.t7S06Wht022323>