diff options
author | Eric Lammerts <linux-arm@lists.lammerts.org> | 2009-05-19 20:53:20 -0400 |
---|---|---|
committer | Sascha Hauer <s.hauer@pengutronix.de> | 2009-05-20 13:09:20 -0400 |
commit | 0003b795c310da83501fcf0329f6be7a0984647d (patch) | |
tree | 567e050f3c19abd75f333b03a17bfc71b9ab323e /drivers/serial/imx.c | |
parent | 2b0c3677bfcf0c21bcaf2130e6e094a92ab93ae8 (diff) |
fix oops when using console=ttymxcN with N > 0
Signed-off-by: Eric Lammerts <eric@lammerts.org>
Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
Diffstat (limited to 'drivers/serial/imx.c')
-rw-r--r-- | drivers/serial/imx.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/drivers/serial/imx.c b/drivers/serial/imx.c index 3f5d5a200481..738c8a5f64f2 100644 --- a/drivers/serial/imx.c +++ b/drivers/serial/imx.c | |||
@@ -1024,6 +1024,8 @@ imx_console_setup(struct console *co, char *options) | |||
1024 | if (co->index == -1 || co->index >= ARRAY_SIZE(imx_ports)) | 1024 | if (co->index == -1 || co->index >= ARRAY_SIZE(imx_ports)) |
1025 | co->index = 0; | 1025 | co->index = 0; |
1026 | sport = imx_ports[co->index]; | 1026 | sport = imx_ports[co->index]; |
1027 | if(sport == NULL) | ||
1028 | return -ENODEV; | ||
1027 | 1029 | ||
1028 | if (options) | 1030 | if (options) |
1029 | uart_parse_options(options, &baud, &parity, &bits, &flow); | 1031 | uart_parse_options(options, &baud, &parity, &bits, &flow); |