projects
/
GitHub
/
moto-9609
/
android_kernel_motorola_exynos9610.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
9fa7eb2
)
fix oops when using console=ttymxcN with N > 0
author
Eric Lammerts
<linux-arm@lists.lammerts.org>
Wed, 20 May 2009 00:53:20 +0000
(20:53 -0400)
committer
Sascha Hauer
<s.hauer@pengutronix.de>
Wed, 3 Jun 2009 09:51:05 +0000
(11:51 +0200)
Signed-off-by: Eric Lammerts <eric@lammerts.org>
Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
drivers/serial/imx.c
patch
|
blob
|
blame
|
history
diff --git
a/drivers/serial/imx.c
b/drivers/serial/imx.c
index 9f460b175c50ba9eaff00a10ebdbec1f77f21f84..5f0be40dfdab7292ae65b4c763f4ee4105e36e24 100644
(file)
--- a/
drivers/serial/imx.c
+++ b/
drivers/serial/imx.c
@@
-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);