workqueue: fix uninitialized next pointer
authorMathieu Desnoyers <mathieu.desnoyers@efficios.com>
Thu, 23 Oct 2014 21:18:54 +0000 (17:18 -0400)
committerMathieu Desnoyers <mathieu.desnoyers@efficios.com>
Thu, 23 Oct 2014 21:18:54 +0000 (17:18 -0400)
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 <mathieu.desnoyers@efficios.com>
urcu/workqueue-fifo.h

index ea6312f8548b28d8c0cf6cef79fb0bec54c1cfd0..a3d1e72b2782a0afeeb6a438d64825b6a1d1c6cb 100644 (file)
@@ -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
This page took 0.025011 seconds and 4 git commands to generate.