diff --git a/[refs] b/[refs] index e23f41ca0458..94e79e4cd2cc 100644 --- a/[refs] +++ b/[refs] @@ -1,2 +1,2 @@ --- -refs/heads/master: c315bd5fdd2a949a9ccc22b2c64ee694602682d4 +refs/heads/master: 4330e179a96bc9310d36e9b858bc8f275f329312 diff --git a/trunk/drivers/serial/mcf.c b/trunk/drivers/serial/mcf.c index 56841fe5f483..0eefb07bebaf 100644 --- a/trunk/drivers/serial/mcf.c +++ b/trunk/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)