Commit c02f9733 authored by Len Brown's avatar Len Brown Committed by Len Brown

[ACPI] fix double quoted params such as acpi_os_string="a b c"

by Christian Lupien
http://bugzilla.kernel.org/show_bug.cgi?id=3242
parent 8960df9a
......@@ -259,8 +259,10 @@ __setup("quiet", quiet_kernel);
static int __init unknown_bootoption(char *param, char *val)
{
/* Change NUL term back to "=", to make "param" the whole string. */
if (val)
val[-1] = '=';
if (val) {
if (val[-1] == '"') val[-2] = '=';
else val[-1] = '=';
}
/* Handle obsolete-style parameters */
if (obsolete_checksetup(param))
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment