17 lines
626 B
Diff
17 lines
626 B
Diff
|
This fixes a segfault, see https://github.com/dracutdevs/dracut/pull/541
|
||
|
|
||
|
Remove after update to 050.
|
||
|
|
||
|
--- install/dracut-install.c
|
||
|
+++ install/dracut-install.c
|
||
|
@@ -1243,6 +1243,9 @@ static int install_dependent_modules(struct kmod_list *modlist)
|
||
|
mod = kmod_module_get_module(itr);
|
||
|
path = kmod_module_get_path(mod);
|
||
|
|
||
|
+ if (path == NULL)
|
||
|
+ continue;
|
||
|
+
|
||
|
name = kmod_module_get_name(mod);
|
||
|
if (arg_mod_filter_noname && (regexec(&mod_filter_noname, name, 0, NULL, 0) == 0)) {
|
||
|
kmod_module_unref(mod);
|