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 Jun 3, 2009
1 parent 9fa7eb2 commit e76afc4
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 @@ -1031,6 +1031,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 e76afc4

Please sign in to comment.