]> git.ipfire.org Git - thirdparty/kmod.git/commitdiff
libkmod: ignore kcmdline option if we fail to parse modname
authorLucas De Marchi <lucas.demarchi@intel.com>
Tue, 10 Mar 2020 08:06:39 +0000 (01:06 -0700)
committerLucas De Marchi <lucas.demarchi@intel.com>
Fri, 13 Mar 2020 16:23:58 +0000 (09:23 -0700)
The error message is saying we are ignoring the option on the kernel
command line, so just do it.

libkmod/libkmod-config.c

index 7b6236779c13fc859e277ae2f3fd7616ee87313e..971f20b8a352406f3bbdeba12cd684266e0dc171 100644 (file)
@@ -488,8 +488,9 @@ static void kcmdline_parse_result(struct kmod_config *config, char *modname,
                if (underscores(modname) < 0) {
                        ERR(config->ctx, "Ignoring bad option on kernel command line while parsing module name: '%s'\n",
                            modname);
+               } else {
+                       kmod_config_add_options(config, modname, param);
                }
-               kmod_config_add_options(config, modname, param);
        }
 }