summaryrefslogtreecommitdiffstats
path: root/sys/kern/kern_timeout.c
diff options
context:
space:
mode:
authorcperciva <cperciva@FreeBSD.org>2005-01-19 21:15:58 +0000
committercperciva <cperciva@FreeBSD.org>2005-01-19 21:15:58 +0000
commit933b3f52b0d97f93842f00e485fd26f696ebd210 (patch)
tree430625459a285f46e777551affd9be724ff1771c /sys/kern/kern_timeout.c
parentd03c407d2ca55c2560749e8c2bd7767e8a29a23a (diff)
downloadFreeBSD-src-933b3f52b0d97f93842f00e485fd26f696ebd210.zip
FreeBSD-src-933b3f52b0d97f93842f00e485fd26f696ebd210.tar.gz
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
Diffstat (limited to 'sys/kern/kern_timeout.c')
-rw-r--r--sys/kern/kern_timeout.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/sys/kern/kern_timeout.c b/sys/kern/kern_timeout.c
index d1ff84f..a030593 100644
--- a/sys/kern/kern_timeout.c
+++ b/sys/kern/kern_timeout.c
@@ -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);
OpenPOWER on IntegriCloud