git.openpandora.org
/
pandora-kernel.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
| inline |
side by side
Merge branch 'for-linus' of git://git.kernel.org/pub/scm/linux/kernel/git/ryusuke...
[pandora-kernel.git]
/
drivers
/
serial
/
mcf.c
diff --git
a/drivers/serial/mcf.c
b/drivers/serial/mcf.c
index
56841fe
..
0eefb07
100644
(file)
--- a/
drivers/serial/mcf.c
+++ b/
drivers/serial/mcf.c
@@
-513,7
+513,7
@@
static int __init mcf_console_setup(struct console *co, char *options)
int parity = 'n';
int flow = 'n';
- if ((co->index
>= 0) && (co->index <
= MCF_MAXPORTS))
+ if ((co->index
< 0) || (co->index >
= MCF_MAXPORTS))
co->index = 0;
port = &mcf_ports[co->index].port;
if (port->membase == 0)