From: Mathieu Desnoyers Date: Thu, 23 Oct 2014 21:18:54 +0000 (-0400) Subject: workqueue: fix uninitialized next pointer X-Git-Url: https://git.lttng.org./?a=commitdiff_plain;h=db9916c6618c4da50d5f2779af1640cab1ebcfed;p=urcu.git workqueue: fix uninitialized next pointer We use this next pointer to check if the worker in in the wait queue or not. Therefore, we need to initialize it to NULL. Signed-off-by: Mathieu Desnoyers --- diff --git a/urcu/workqueue-fifo.h b/urcu/workqueue-fifo.h index ea6312f..a3d1e72 100644 --- a/urcu/workqueue-fifo.h +++ b/urcu/workqueue-fifo.h @@ -139,6 +139,7 @@ void urcu_worker_init(struct urcu_worker *worker, int flags) worker->flags = flags; urcu_wait_node_init(&worker->wait_node, URCU_WAIT_RUNNING); worker->own = NULL; + worker->wait_node.node.next = NULL; } static inline