Skip to contentSkip to conversation

Fix init_waitqueue_entry

PATCH New Samuel Thibault 1 participant 1 message Nov 23, 2007

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 Fix init_waitqueue_entry

Fix initialization of thread_list in init_waitqueue_entry().

extras/mini-os/include/wait.h +1 -0
diff -r f2711b7eae95 -r 36bf1e737b87 extras/mini-os/include/wait.h
@@ -41,6 +41,7 @@ static inline void init_waitqueue_entry(
 static inline void init_waitqueue_entry(struct wait_queue *q, struct thread *thread)
 {
     q->thread = thread;
+    INIT_LIST_HEAD(&q->thread_list);
 }