Skip site navigation (1)Skip section navigation (2)
Date:      Sun, 2 Sep 2018 17:02:14 +0000 (UTC)
From:      Mark Johnston <markj@FreeBSD.org>
To:        src-committers@freebsd.org, svn-src-all@freebsd.org, svn-src-head@freebsd.org
Subject:   svn commit: r338430 - head/sys/cddl/dev/fbt
Message-ID:  <201809021702.w82H2EqG005133@repo.freebsd.org>

next in thread | raw e-mail | index | archive | help
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;



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