]> git.hungrycats.org Git - linux/commitdiff
[ACPI] fix double quoted params such as acpi_os_string="a b c"
authorLen Brown <len.brown@intel.com>
Fri, 8 Oct 2004 19:51:51 +0000 (15:51 -0400)
committerLen Brown <lenb@dhcppc3.>
Fri, 8 Oct 2004 19:51:51 +0000 (15:51 -0400)
by Christian Lupien
http://bugzilla.kernel.org/show_bug.cgi?id=3242

init/main.c

index e62a5694183da10f1ceecc83beb2e7a6dbc17820..056735975a94349a92f078ab3ba98d16fee5228b 100644 (file)
@@ -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))