Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

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
Loading
Loading
Loading
Loading
+2 −0
Original line number Diff line number Diff line
@@ -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 */
	if (port->serial->type->set_termios)
		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)