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

Commit 149b36ea authored by Alan Cox's avatar Alan Cox Committed by Greg Kroah-Hartman
Browse files

serial: stop passing NULL to functions that expect data



Earlier patches have removed the checking for old v new differences from the
USB drivers so we can now pass in a valid blank old termios so that we don't
to fill the drivers with magic hacks for console support

Signed-off-by: default avatarAlan Cox <alan@redhat.com>
Signed-off-by: default avatarAndrew Morton <akpm@linux-foundation.org>
Signed-off-by: default avatarGreg Kroah-Hartman <gregkh@suse.de>
parent 3657f6c0
Loading
Loading
Loading
Loading
+2 −1
Original line number Diff line number Diff line
@@ -1875,6 +1875,7 @@ uart_set_options(struct uart_port *port, struct console *co,
		 int baud, int parity, int bits, int flow)
{
	struct ktermios termios;
	static struct ktermios dummy;
	int i;

	/*
@@ -1920,7 +1921,7 @@ uart_set_options(struct uart_port *port, struct console *co,
	 */
	port->mctrl |= TIOCM_DTR;

	port->ops->set_termios(port, &termios, NULL);
	port->ops->set_termios(port, &termios, &dummy);
	co->cflag = termios.c_cflag;

	return 0;