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:
parent
412e58bf47
commit
a9d49f9e64
Notes:
svn2git
2020-12-20 02:59:44 +00:00
svn path=/head/; revision=338430
@ -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;
|
||||
|
Loading…
Reference in New Issue
Block a user