Skip to content

Commit

Permalink
fix oops when using console=ttymxcN with N > 0
Browse files Browse the repository at this point in the history
Signed-off-by: Eric Lammerts <eric@lammerts.org>
Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
  • Loading branch information
Eric Lammerts authored and Sascha Hauer committed May 20, 2009
1 parent 2b0c367 commit 0003b79
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions drivers/serial/imx.c
Original file line number Diff line number Diff line change
Expand Up @@ -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);
Expand Down

0 comments on commit 0003b79

Please sign in to comment.