Skip to content
Snippets Groups Projects
Commit 33785091 authored by Alan Cox's avatar Alan Cox Committed by Greg Kroah-Hartman
Browse files

usb-serial: handle NULL termios methods as "no hardware changing support"

parent ed1f12ec
No related branches found
No related tags found
No related merge requests found
...@@ -429,6 +429,8 @@ static void serial_set_termios (struct tty_struct *tty, struct ktermios * old) ...@@ -429,6 +429,8 @@ static void serial_set_termios (struct tty_struct *tty, struct ktermios * old)
/* pass on to the driver specific version of this function if it is available */ /* pass on to the driver specific version of this function if it is available */
if (port->serial->type->set_termios) if (port->serial->type->set_termios)
port->serial->type->set_termios(port, old); port->serial->type->set_termios(port, old);
else
tty_termios_copy_hw(tty->termios, old);
} }
static void serial_break (struct tty_struct *tty, int break_state) static void serial_break (struct tty_struct *tty, int break_state)
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment