From: Jiri Slaby Date: Wed, 24 Jun 2009 17:35:05 +0000 (+0100) Subject: tty: fix tty_port_block_til_ready waiting X-Git-Tag: v2.6.31-rc1~17 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=6af9a43d58f2ec455b752fb9534cf05c7e855dbe;p=pandora-kernel.git tty: fix tty_port_block_til_ready waiting Since commit 3e3b5c087799e536871c8261b05bc28e4783c8da ("tty: use prepare/finish_wait"), tty_port_block_til_ready() is using prepare_to_wait()/finish_wait(). Those functions require that the wait_queue_t be initialised with .func=autoremove_wake_function, via DEFINE_WAIT(). But the conversion from DECLARE_WAITQUEUE() to DEFINE_WAIT() was not made, so this code will oops in finish_wait(). Signed-off-by: Jiri Slaby Signed-off-by: Andrew Morton Signed-off-by: Alan Cox Signed-off-by: Linus Torvalds --- Reading git-diff-tree failed