diff options
| author | Pedro F. Giffuni <pfg@FreeBSD.org> | 2018-01-21 15:42:36 +0000 |
|---|---|---|
| committer | Pedro F. Giffuni <pfg@FreeBSD.org> | 2018-01-21 15:42:36 +0000 |
| commit | ac2fffa4b74cd83963f0d462c379c7f50eeabf20 (patch) | |
| tree | 1f8fc635121499d467998c99ece5983a2d563840 /sys/kern/subr_taskqueue.c | |
| parent | e09304d8f33887be9cc37817885061ccbb770d50 (diff) | |
Notes
Diffstat (limited to 'sys/kern/subr_taskqueue.c')
| -rw-r--r-- | sys/kern/subr_taskqueue.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/sys/kern/subr_taskqueue.c b/sys/kern/subr_taskqueue.c index f351ba73cc21..290a5c32d908 100644 --- a/sys/kern/subr_taskqueue.c +++ b/sys/kern/subr_taskqueue.c @@ -651,8 +651,8 @@ _taskqueue_start_threads(struct taskqueue **tqp, int count, int pri, vsnprintf(ktname, sizeof(ktname), name, ap); tq = *tqp; - tq->tq_threads = mallocarray(count, sizeof(struct thread *), - M_TASKQUEUE, M_NOWAIT | M_ZERO); + tq->tq_threads = malloc(sizeof(struct thread *) * count, M_TASKQUEUE, + M_NOWAIT | M_ZERO); if (tq->tq_threads == NULL) { printf("%s: no memory for %s threads\n", __func__, ktname); return (ENOMEM); |
