TTY: pdc_cons, fix open vs pdc_console_tty_driver race
authorJiri Slaby <jslaby@suse.cz>
Mon, 5 Mar 2012 13:52:52 +0000 (14:52 +0100)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Thu, 8 Mar 2012 20:51:13 +0000 (12:51 -0800)
commit0b479d54ae7b79f62f09ef977c2228e579924d38
tree9bd7a2790bf9776130bb1cc5aff80bafa2a445ec
parent52b762f7a94c88e5a8aa2be67a06a6f01020cc82
TTY: pdc_cons, fix open vs pdc_console_tty_driver race

Assign the pointer to pdc_console_tty_driver (a tty_driver) earlier.
Otherwise the timer may dereference NULL.

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