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
This commit is contained in:
parent
69cf5b29fd
commit
c5904471dc
@ -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]);
|
||||
|
Loading…
x
Reference in New Issue
Block a user