1
0
mirror of https://git.FreeBSD.org/src.git synced 2024-12-17 10:26:15 +00:00

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:
Colin Percival 2005-01-19 20:34:46 +00:00
parent b72e9f1719
commit 0ceba3d69c
Notes: svn2git 2020-12-20 02:59:44 +00:00
svn path=/head/; revision=140489

View File

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