]> git.baikalelectronics.ru Git - kernel.git/commit
serial: core: Fix handling of options after MMIO address
authorAlexander Sverdlin <alexander.sverdlin@nokia.com>
Mon, 12 Sep 2016 11:29:29 +0000 (13:29 +0200)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Tue, 13 Sep 2016 16:54:34 +0000 (18:54 +0200)
commit3efcbe15def425f35f118a77e7079e7f467eabf4
treec1ec69422061726fe637668813ce67952c8d900b
parent7b2724c6cd016110b3b042329542704da78d9eee
serial: core: Fix handling of options after MMIO address

Guenter Roeck reported a regression caused by commit "serial: earlycon:
Extend earlycon command line option to support 64-bit addresses":

console= and earlycon= options have the following format:
...,<addr>,<options>

Historically used here simple_strtoul() had no problems with comma, but the
new and recommended kstrtoull() requires null-terminated string and returns
-EINVAL in case there are "options" at the end. There is no recommended to
use function currently that will support it, so stick to obsolete
simple_strtoull() variant.

Signed-off-by: Alexander Sverdlin <alexander.sverdlin@nokia.com>
Reported-by: Guenter Roeck <linux@roeck-us.net>
Reviewed-by: Guenter Roeck <linux@roeck-us.net>
Tested-by: Guenter Roeck <linux@roeck-us.net>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/tty/serial/serial_core.c