Fix the hash table lookup in fbt_destroy().

Reported and tested by:	pho
Approved by:	re (kib)
X-MFC with:	r338359
This commit is contained in:
Mark Johnston 2018-09-02 17:02:13 +00:00
parent 412e58bf47
commit a9d49f9e64
Notes: svn2git 2020-12-20 02:59:44 +00:00
svn path=/head/; revision=338430

View File

@ -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;