aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/serial/8250_early.c
diff options
context:
space:
mode:
Diffstat (limited to 'drivers/serial/8250_early.c')
-rw-r--r--drivers/serial/8250_early.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/serial/8250_early.c b/drivers/serial/8250_early.c
index b7a5dd710228..59ba5d993b4b 100644
--- a/drivers/serial/8250_early.c
+++ b/drivers/serial/8250_early.c
@@ -164,7 +164,7 @@ static int __init parse_options(struct early_uart_device *device, char *options)
164 164
165 if ((options = strchr(options, ','))) { 165 if ((options = strchr(options, ','))) {
166 options++; 166 options++;
167 device->baud = simple_strtoul(options, 0, 0); 167 device->baud = simple_strtoul(options, NULL, 0);
168 length = min(strcspn(options, " "), sizeof(device->options)); 168 length = min(strcspn(options, " "), sizeof(device->options));
169 strncpy(device->options, options, length); 169 strncpy(device->options, options, length);
170 } else { 170 } else {