]> git.karo-electronics.de Git - karo-tx-linux.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)
commit8b2303de399f66b0da2c7e5bcc8296be574766f1
treec1ec69422061726fe637668813ce67952c8d900b
parent1e512d45332bb3a2e97ca262101d43adca274bb2
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