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

fix oops when using console=ttymxcN with N > 0

Signed-off-by: default avatarEric Lammerts <eric@lammerts.org>
Signed-off-by: default avatarSascha Hauer <s.hauer@pengutronix.de>
parent 2b0c3677
......@@ -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);
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment