summaryrefslogtreecommitdiff
path: root/drivers/tty/serial/8250
diff options
context:
space:
mode:
authorGreg Kroah-Hartman <gregkh@linuxfoundation.org>2013-07-29 19:32:30 (GMT)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>2013-07-29 19:32:30 (GMT)
commitcf204a1b54a5fa34d64676313a1cb0119657388d (patch)
treee0c86bb9fda1b308cf473b3909a36d34a2aab385 /drivers/tty/serial/8250
parent299a62575a63b19add8206642b340f1b54ec4faf (diff)
parent5ae90d8e467e625e447000cb4335c4db973b1095 (diff)
downloadlinux-fsl-qoriq-cf204a1b54a5fa34d64676313a1cb0119657388d.tar.xz
Merge 3.11-rc3 into tty-next
We want the tty fixes in here as well. Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Diffstat (limited to 'drivers/tty/serial/8250')
-rw-r--r--drivers/tty/serial/8250/8250_early.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/drivers/tty/serial/8250/8250_early.c b/drivers/tty/serial/8250/8250_early.c
index 721904f..946ddd2 100644
--- a/drivers/tty/serial/8250/8250_early.c
+++ b/drivers/tty/serial/8250/8250_early.c
@@ -193,7 +193,8 @@ static int __init parse_options(struct early_serial8250_device *device,
if (options) {
options++;
device->baud = simple_strtoul(options, NULL, 0);
- length = min(strcspn(options, " "), sizeof(device->options));
+ length = min(strcspn(options, " ") + 1,
+ sizeof(device->options));
strlcpy(device->options, options, length);
} else {
device->baud = probe_baud(port);