]> git.baikalelectronics.ru Git - kernel.git/commit
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)
commite7b36483afc1651e375a810667fecb5df1b75c78
tree9bd7a2790bf9776130bb1cc5aff80bafa2a445ec
parent9be1b37d91e38212a5296161145ed8d9a997f18c
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