From: Harald Hoyer Date: Wed, 18 Jul 2018 10:41:01 +0000 (+0200) Subject: dracut-install: skip modules with empty path X-Git-Tag: 049~97 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=e331e06a3910ef3fe6837f3e93a48123a7cc822b;p=thirdparty%2Fdracut.git dracut-install: skip modules with empty path if kmod_module_get_path(module) returns NULL, skip the module --- diff --git a/install/dracut-install.c b/install/dracut-install.c index 001225b40..88bca1d44 100644 --- a/install/dracut-install.c +++ b/install/dracut-install.c @@ -1244,7 +1244,7 @@ static int install_dependent_modules(struct kmod_list *modlist) path = kmod_module_get_path(mod); name = kmod_module_get_name(mod); - if (arg_mod_filter_noname && (regexec(&mod_filter_noname, name, 0, NULL, 0) == 0)) { + if ((path == NULL) || (arg_mod_filter_noname && (regexec(&mod_filter_noname, name, 0, NULL, 0) == 0))) { kmod_module_unref(mod); continue; }