]> www.pilppa.org Git - linux-2.6-omap-h63xx.git/commit
[S390] 3270: fix race with stack local wait_queue_head_t.
authorMartin Schwidefsky <schwidefsky@de.ibm.com>
Fri, 30 May 2008 08:03:32 +0000 (10:03 +0200)
committerMartin Schwidefsky <schwidefsky@de.ibm.com>
Fri, 30 May 2008 08:03:35 +0000 (10:03 +0200)
commit54ad64129cc166b9eec7151f3f9fc83589e33555
tree62653aafec6b61da39a58c4cac2c1b5e37860df1
parentc80ee724966a8ce9a68020d9095233fb1c6f57e8
[S390] 3270: fix race with stack local wait_queue_head_t.

A wait_event call with a stack local wait_queue_head_t structure that is
used to do the wake up for the wait_event is inherently racy. After the
wait_event finished the wake_up call might not have completed yet.
Remove the stack local wait_queue_head_t from raw3270_start_init and
use the global raw3270_wait_queue instead.

Signed-off-by: Martin Schwidefsky <schwidefsky@de.ibm.com>
drivers/s390/char/raw3270.c