dracut-install: skip modules with empty path

if kmod_module_get_path(module) returns NULL, skip the module
master
Harald Hoyer 2018-07-18 12:41:01 +02:00
parent 7047294617
commit e331e06a39
1 changed files with 1 additions and 1 deletions

View File

@ -1244,7 +1244,7 @@ static int install_dependent_modules(struct kmod_list *modlist)
path = kmod_module_get_path(mod); path = kmod_module_get_path(mod);


name = kmod_module_get_name(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); kmod_module_unref(mod);
continue; continue;
} }