mirror of https://lore.kernel.org/lkml/
 help / color / mirror / Atom feed
* [patch] 2.6.5-rc2 __WAITQUEUE_INITIALIZER
@ 2004-03-29  5:49 Keith Owens
  2004-03-29  6:53 ` Andrew Morton
  0 siblings, 1 reply; 4+ messages in thread
From: Keith Owens @ 2004-03-29  5:49 UTC (permalink / raw)
  To: linux-kernel

When struct __wait_queue is on stack or you reuse an existing
waitqueue, you get garbage in the flags.

Index: 5-rc2.1/include/linux/wait.h
--- 5-rc2.1/include/linux/wait.h Thu, 18 Dec 2003 16:46:13 +1100 kaos (linux-2.6/m/c/34_wait.h 1.1 644)
+++ 5-rc2.1(w)/include/linux/wait.h Mon, 29 Mar 2004 15:36:39 +1000 kaos (linux-2.6/m/c/34_wait.h 1.1 644)
@@ -40,6 +40,7 @@ typedef struct __wait_queue_head wait_qu
  */
 
 #define __WAITQUEUE_INITIALIZER(name, tsk) {				\
+	.flags		= 0,						\
 	.task		= tsk,						\
 	.func		= default_wake_function,			\
 	.task_list	= { NULL, NULL } }


^ permalink raw reply	[flat|nested] 4+ messages in thread

end of thread, other threads:[~2004-04-02 13:19 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2004-03-29  5:49 [patch] 2.6.5-rc2 __WAITQUEUE_INITIALIZER Keith Owens
2004-03-29  6:53 ` Andrew Morton
2004-03-29  8:09   ` Keith Owens
2004-04-02 13:17   ` Tomas Szepe

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox

all inboxes | Powered by JetHome®