Henrik Nordström 258a9fd17b tty/8250_early: Don't truncate last character of options
The earlier change to use strlcpy uncovered a bug in the options
argument length calculation causing last character to be truncated.
This makes the actual console to be configured with incorrect
baudrate when specifying the console using console=uart,... syntax.

Bug symptom seen in kernel log output:

Kernel command line: console=uart,mmio,0x90000000,115200
Early serial console at MMIO 0x90000000 (options '11520')

which then results in a invalid baud rate 11520 instead of the
expected 115200 when the console is switched to ttyS0 later
in the boot process.

Signed-off-by: Henrik Nordstrom <henrik@henriknordstrom.net>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
2013-07-24 15:23:38 -07:00
..
2013-03-18 16:17:20 -07:00
2013-01-15 22:30:15 -08:00
2013-01-15 22:30:15 -08:00
2013-01-15 22:30:15 -08:00
2013-01-15 22:30:15 -08:00
2013-03-18 16:24:30 -07:00
2013-01-15 22:30:15 -08:00
2013-03-18 16:26:33 -07:00
2013-03-18 16:26:33 -07:00
2013-01-15 22:30:15 -08:00
2013-06-17 12:49:43 -07:00
2013-01-15 22:30:15 -08:00
2013-01-15 22:30:15 -08:00
2013-07-02 13:24:47 -07:00
2012-10-13 11:16:58 +09:00
2013-01-15 22:30:15 -08:00
2013-01-15 22:30:15 -08:00
2013-03-18 16:29:29 -07:00
2013-01-15 22:30:15 -08:00
2011-08-26 11:01:15 -07:00
2013-01-15 22:30:15 -08:00
2013-01-15 22:30:15 -08:00
2013-01-15 22:30:15 -08:00
2013-01-25 08:52:23 -08:00
2013-01-15 22:30:15 -08:00
2013-07-02 14:42:51 -07:00
2013-01-15 22:30:15 -08:00
2013-05-28 12:02:13 +02:00
2013-01-15 22:30:15 -08:00
2013-01-15 22:30:15 -08:00
2013-01-15 22:30:15 -08:00
2013-07-02 13:43:38 -07:00
2013-01-15 22:30:15 -08:00