]> git.kernelconcepts.de Git - karo-tx-linux.git/commit
serial: earlycon: Skip parse_options() if empty string
authorPeter Hurley <peter@hurleysoftware.com>
Mon, 9 Mar 2015 20:27:19 +0000 (16:27 -0400)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Thu, 26 Mar 2015 16:25:27 +0000 (17:25 +0100)
commit60846880384f00713c7f54243f749c1923e6c0e3
treeddc81cce43db0e3b4836d1b52d5d825d116a22aa
parent526ebc3f56491fe971cd2b51cfc859a879e11e93
serial: earlycon: Skip parse_options() if empty string

Earlycon param strings of the form
   earlycon=<name>
are rejected from parse_options() with an error (which, in turn,
results in a NULL argument for the setup() method options parameter).

Only pass non-empty string to parse_options(); this will enable
handling actual parse errors differently than expected and allow
formats.

Acked-by: Rob Herring <robh@kernel.org>
Signed-off-by: Peter Hurley <peter@hurleysoftware.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/tty/serial/earlycon.c