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

Commit 0003b795 authored by Eric Lammerts's avatar Eric Lammerts Committed by Sascha Hauer
Browse files

fix oops when using console=ttymxcN with N > 0

parent 2b0c3677
Loading
Loading
Loading
Loading
+2 −0
Original line number Diff line number Diff line
@@ -1024,6 +1024,8 @@ imx_console_setup(struct console *co, char *options)
	if (co->index == -1 || co->index >= ARRAY_SIZE(imx_ports))
		co->index = 0;
	sport = imx_ports[co->index];
	if(sport == NULL)
		return -ENODEV;

	if (options)
		uart_parse_options(options, &baud, &parity, &bits, &flow);