mirror of
https://git.FreeBSD.org/src.git
synced 2025-01-17 15:27:36 +00:00
Make "c->c_func = NULL" conditional on CALLOUT_LOCAL_ALLOC in both
places where it occurs, not just one. :-) Pointed out by: glebius Pointy had to: cperciva
This commit is contained in:
parent
d5f5163537
commit
7834081c88
Notes:
svn2git
2020-12-20 02:59:44 +00:00
svn path=/head/; revision=140492
@ -480,9 +480,9 @@ _callout_stop_safe(c, safe)
|
||||
nextsoftcheck = TAILQ_NEXT(c, c_links.tqe);
|
||||
}
|
||||
TAILQ_REMOVE(&callwheel[c->c_time & callwheelmask], c, c_links.tqe);
|
||||
c->c_func = NULL;
|
||||
|
||||
if (c->c_flags & CALLOUT_LOCAL_ALLOC) {
|
||||
c->c_func = NULL;
|
||||
SLIST_INSERT_HEAD(&callfree, c, c_links.sle);
|
||||
}
|
||||
mtx_unlock_spin(&callout_lock);
|
||||
|
Loading…
Reference in New Issue
Block a user