commit | 536a3440a27f8687090bdf33468b003bc0f810cf | [log] [tgz] |
---|---|---|
author | Jiri Slaby <jslaby@suse.cz> | Tue Aug 07 21:47:40 2012 +0200 |
committer | Greg Kroah-Hartman <gregkh@linuxfoundation.org> | Fri Aug 10 13:29:57 2012 -0700 |
tree | 76f358685b2838f740df7e293101078177fa46e7 | |
parent | ee8b593affdf893012e57f4c54a21984d1b0d92e [diff] |
TTY: ttyprintk, initialize tty_port earlier After tty_register_driver is called, it is too late to initialize a guy with which we operate in open. When a process already called open(2) on that node, the structures may be in use uninitialized. Move the initialization prior to tty_register_driver. Signed-off-by: Jiri Slaby <jslaby@suse.cz> Cc: Samo Pogacnik <samo_pogacnik@t-2.net> Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>