tty: move the termios object into the tty
This will let us sort out a whole pile of tty related races. The alternative would be to keep points and refcount the termios objects. However 1. They are tiny anyway 2. Many devices don't use the stored copies 3. We can remove a pty special case Signed-off-by: Alan Cox <alan@linux.intel.com> Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
This commit is contained in:

gecommit door
Greg Kroah-Hartman

bovenliggende
6d31a88cb2
commit
adc8d746ca
@@ -216,7 +216,7 @@ static void ssu100_set_termios(struct tty_struct *tty,
|
||||
struct ktermios *old_termios)
|
||||
{
|
||||
struct usb_device *dev = port->serial->dev;
|
||||
struct ktermios *termios = tty->termios;
|
||||
struct ktermios *termios = &tty->termios;
|
||||
u16 baud, divisor, remainder;
|
||||
unsigned int cflag = termios->c_cflag;
|
||||
u16 urb_value = 0; /* will hold the new flags */
|
||||
@@ -322,7 +322,7 @@ static int ssu100_open(struct tty_struct *tty, struct usb_serial_port *port)
|
||||
dbg("%s - set uart failed", __func__);
|
||||
|
||||
if (tty)
|
||||
ssu100_set_termios(tty, port, tty->termios);
|
||||
ssu100_set_termios(tty, port, &tty->termios);
|
||||
|
||||
return usb_serial_generic_open(tty, port);
|
||||
}
|
||||
|
Verwijs in nieuw issue
Block a user