svn commit: r338430 - head/sys/cddl/dev/fbt

Mark Johnston markj at FreeBSD.org
Sun Sep 2 17:02:14 UTC 2018


Author: markj
Date: Sun Sep  2 17:02:13 2018
New Revision: 338430
URL: https://svnweb.freebsd.org/changeset/base/338430

Log:
  Fix the hash table lookup in fbt_destroy().
  
  Reported and tested by:	pho
  Approved by:	re (kib)
  X-MFC with:	r338359

Modified:
  head/sys/cddl/dev/fbt/fbt.c

Modified: head/sys/cddl/dev/fbt/fbt.c
==============================================================================
--- head/sys/cddl/dev/fbt/fbt.c	Sun Sep  2 15:53:56 2018	(r338429)
+++ head/sys/cddl/dev/fbt/fbt.c	Sun Sep  2 17:02:13 2018	(r338430)
@@ -212,7 +212,7 @@ fbt_destroy_one(fbt_probe_t *fbt)
 
 	ndx = FBT_ADDR2NDX(fbt->fbtp_patchpoint);
 	for (hash = fbt_probetab[ndx], hashprev = NULL; hash != NULL;
-	    hash = hash->fbtp_hashnext, hashprev = hash) {
+	    hashprev = hash, hash = hash->fbtp_hashnext) {
 		if (hash == fbt) {
 			if ((next = fbt->fbtp_tracenext) != NULL)
 				next->fbtp_hashnext = hash->fbtp_hashnext;


More information about the svn-src-head mailing list