summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorLucas De Marchi <lucas.demarchi@intel.com>2020-03-10 01:06:39 -0700
committerLucas De Marchi <lucas.demarchi@intel.com>2020-03-13 09:23:58 -0700
commit0262531556a3543f33c7a553b43e697377f8bd99 (patch)
tree042a8190e0c97a33267cefdab6f2bb4a3426c2f4
parent8ea4f7c554a0a6bdbd6e75dcc15c8d3ab2605624 (diff)
downloadkmod-0262531556a3543f33c7a553b43e697377f8bd99.tar.gz
kmod-0262531556a3543f33c7a553b43e697377f8bd99.tar.bz2
kmod-0262531556a3543f33c7a553b43e697377f8bd99.zip
libkmod: ignore kcmdline option if we fail to parse modname
The error message is saying we are ignoring the option on the kernel command line, so just do it.
-rw-r--r--libkmod/libkmod-config.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/libkmod/libkmod-config.c b/libkmod/libkmod-config.c
index 7b62367..971f20b 100644
--- a/libkmod/libkmod-config.c
+++ b/libkmod/libkmod-config.c
@@ -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);
}
}