From db9916c6618c4da50d5f2779af1640cab1ebcfed Mon Sep 17 00:00:00 2001 From: Mathieu Desnoyers Date: Thu, 23 Oct 2014 17:18:54 -0400 Subject: [PATCH] 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 --- urcu/workqueue-fifo.h | 1 + 1 file changed, 1 insertion(+) 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 -- 2.34.1