TTY: pdc_cons, fix racy tty test
authorJiri Slaby <jslaby@suse.cz>
Mon, 5 Mar 2012 13:52:50 +0000 (14:52 +0100)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Thu, 8 Mar 2012 20:51:13 +0000 (12:51 -0800)
commite380a81e34375a38f253b42394ef06ca3127559f
treeca03692116effe7affc1ce47f2ed43e3e48b64a4
parent9b937421e852cfa9992d6e1a1d814dcec8eb1ce3
TTY: pdc_cons, fix racy tty test

The tty->count test in the timer was racy. Let's remove the test and
properly delete the timer and wait for the body to finish using _sync
version of del_timer.

Signed-off-by: Jiri Slaby <jslaby@suse.cz>
Cc: Kyle McMartin <kyle@mcmartin.ca>
Cc: Helge Deller <deller@gmx.de>
Cc: "James E.J. Bottomley" <jejb@parisc-linux.org>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
arch/parisc/kernel/pdc_cons.c