diff options
Diffstat (limited to 'arch/x86/kernel/early_printk.c')
| -rw-r--r-- | arch/x86/kernel/early_printk.c | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/arch/x86/kernel/early_printk.c b/arch/x86/kernel/early_printk.c index 89427d8d4fc5..eec40f595ab9 100644 --- a/arch/x86/kernel/early_printk.c +++ b/arch/x86/kernel/early_printk.c | |||
| @@ -175,7 +175,9 @@ static __init void early_serial_init(char *s) | |||
| 175 | } | 175 | } |
| 176 | 176 | ||
| 177 | if (*s) { | 177 | if (*s) { |
| 178 | if (kstrtoul(s, 0, &baud) < 0 || baud == 0) | 178 | baud = simple_strtoull(s, &e, 0); |
| 179 | |||
| 180 | if (baud == 0 || s == e) | ||
| 179 | baud = DEFAULT_BAUD; | 181 | baud = DEFAULT_BAUD; |
| 180 | } | 182 | } |
| 181 | 183 | ||
