diff options
author | davide <davide@FreeBSD.org> | 2013-03-09 20:03:10 +0000 |
---|---|---|
committer | davide <davide@FreeBSD.org> | 2013-03-09 20:03:10 +0000 |
commit | 399582186fa828c99cba280c250c7a555a4fdcc4 (patch) | |
tree | 89d59f08451045598b0c657dc51c498a580836a4 | |
parent | 8284d98898264c0697768dc0078fd3ab4cb206f8 (diff) | |
download | FreeBSD-src-399582186fa828c99cba280c250c7a555a4fdcc4.zip FreeBSD-src-399582186fa828c99cba280c250c7a555a4fdcc4.tar.gz |
Fixup r248032:
Change size requested to malloc(9) now that callwheel buckets are
callout_list and not callout_tailq anymore. This change was already
there but it seems it got lost after code churn in r248032.
Reported by: alc, kib
-rw-r--r-- | sys/kern/kern_timeout.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/sys/kern/kern_timeout.c b/sys/kern/kern_timeout.c index fa82abd..0fcefab 100644 --- a/sys/kern/kern_timeout.c +++ b/sys/kern/kern_timeout.c @@ -294,7 +294,7 @@ callout_cpu_init(struct callout_cpu *cc) mtx_init(&cc->cc_lock, "callout", NULL, MTX_SPIN | MTX_RECURSE); SLIST_INIT(&cc->cc_callfree); - cc->cc_callwheel = malloc(sizeof(struct callout_tailq) * callwheelsize, + cc->cc_callwheel = malloc(sizeof(struct callout_list) * callwheelsize, M_CALLOUT, M_WAITOK); for (i = 0; i < callwheelsize; i++) LIST_INIT(&cc->cc_callwheel[i]); |