From f83d3f9720dbc8b7012402840f887429aafdbd1b Mon Sep 17 00:00:00 2001 From: Matthew Dillon Date: Wed, 30 Sep 2009 11:50:56 -0700 Subject: [PATCH] kernel - taskqueue - MFC M_ZERO fix * MFC just the M_ZERO fix from master. --- sys/kern/subr_taskqueue.c | 2 +- 1 files changed, 1 insertions(+), 1 deletions(-) diff --git a/sys/kern/subr_taskqueue.c b/sys/kern/subr_taskqueue.c index b9cc454..6788d37 100644 --- a/sys/kern/subr_taskqueue.c +++ b/sys/kern/subr_taskqueue.c @@ -58,7 +58,7 @@ taskqueue_create(const char *name, int mflags, struct taskqueue *queue; static int once = 1; - queue = kmalloc(sizeof(struct taskqueue), M_TASKQUEUE, mflags); + queue = kmalloc(sizeof(struct taskqueue), M_TASKQUEUE, mflags | M_ZERO); if (!queue) return NULL; STAILQ_INIT(&queue->tq_queue); -- 1.7.7.2