summaryrefslogtreecommitdiffstats
path: root/drivers/tty/serial/sn_console.c
diff options
context:
space:
mode:
authorHenrik Nordström <henrik@henriknordstrom.net>2013-07-23 21:06:07 +0200
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>2013-07-24 15:23:38 -0700
commit258a9fd17b92552637bc74776c11737e0472dc86 (patch)
tree2d3c6a1556983b7f3c995f24671eb046b1bcaad4 /drivers/tty/serial/sn_console.c
parent2652c2163d781676284b2af494a97e64d65a5ee6 (diff)
downloadop-kernel-dev-258a9fd17b92552637bc74776c11737e0472dc86.zip
op-kernel-dev-258a9fd17b92552637bc74776c11737e0472dc86.tar.gz
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>
Diffstat (limited to 'drivers/tty/serial/sn_console.c')
0 files changed, 0 insertions, 0 deletions
OpenPOWER on IntegriCloud