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
289c3a6127
commit
0f81d204ed
@ -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…
x
Reference in New Issue
Block a user