[xen-unstable] [Mini-OS] Fix init_waitqueue_entry

classic Classic list List threaded Threaded
1 message Options
Reply | Threaded
Open this post in threaded view
|

[xen-unstable] [Mini-OS] Fix init_waitqueue_entry

Xen patchbot-unstable
# HG changeset patch
# User Keir Fraser <[hidden email]>
# Date 1195910852 0
# Node ID fb7b96a980f60de93669cfb68b4e9da61ae413e3
# Parent  ebb61551565bc9b76ef5e5a41e5efd5042eb3c4a
[Mini-OS] Fix init_waitqueue_entry

Fix initialization of thread_list in init_waitqueue_entry().

Signed-off-by: Samuel Thibault <[hidden email]>
---
 extras/mini-os/include/wait.h |    1 +
 1 files changed, 1 insertion(+)

diff -r ebb61551565b -r fb7b96a980f6 extras/mini-os/include/wait.h
--- a/extras/mini-os/include/wait.h Sat Nov 24 13:27:08 2007 +0000
+++ b/extras/mini-os/include/wait.h Sat Nov 24 13:27:32 2007 +0000
@@ -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);
 }
 
 

_______________________________________________
Xen-changelog mailing list
[hidden email]
http://lists.xensource.com/xen-changelog