Make "c->c_func = NULL" conditional on the CALLOUT_LOCAL_ALLOC flag,
i.e., only clear c->c_func if the callout c is being used via the old timeout(9) interface. Requested by: glebius
This commit is contained in:
parent
b72e9f1719
commit
0ceba3d69c
@ -232,8 +232,8 @@ softclock(void *dummy)
|
||||
c_func = c->c_func;
|
||||
c_arg = c->c_arg;
|
||||
c_flags = c->c_flags;
|
||||
c->c_func = NULL;
|
||||
if (c->c_flags & CALLOUT_LOCAL_ALLOC) {
|
||||
c->c_func = NULL;
|
||||
c->c_flags = CALLOUT_LOCAL_ALLOC;
|
||||
SLIST_INSERT_HEAD(&callfree, c,
|
||||
c_links.sle);
|
||||
|
Loading…
Reference in New Issue
Block a user