Jiri Slaby 7e73eca6a7 TTY: move cdev_add to tty_register_device
We need the /dev/ node not to be available before we call
tty_register_device. Otherwise we might race with open and
tty_struct->port might not be available at that time.

This is not an issue now, but would be a problem after "TTY: use
tty_port_register_device" is applied.

Signed-off-by: Jiri Slaby <jslaby@suse.cz>
Acked-by: Alan Cox <alan@linux.intel.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
2012-08-13 16:45:39 -07:00
..
2012-08-06 09:48:31 -07:00
2012-08-10 13:27:50 -07:00
2012-07-26 13:37:02 -07:00
2012-08-10 12:55:47 -07:00
2012-08-10 12:55:47 -07:00
2012-08-10 13:29:57 -07:00
2011-03-31 11:26:23 -03:00
2012-08-10 13:27:50 -07:00
2012-08-10 12:55:47 -07:00
2012-08-13 16:45:38 -07:00
2012-08-10 12:55:47 -07:00
2012-08-10 12:55:47 -07:00
2012-08-10 12:55:47 -07:00
2012-08-10 12:55:47 -07:00
2012-08-10 12:55:47 -07:00
2012-08-10 12:55:47 -07:00