diff options
Diffstat (limited to 'perl-install')
-rw-r--r-- | perl-install/modules.pm | 7 |
1 files changed, 6 insertions, 1 deletions
diff --git a/perl-install/modules.pm b/perl-install/modules.pm index 9b31904df..e8edd9e67 100644 --- a/perl-install/modules.pm +++ b/perl-install/modules.pm @@ -241,7 +241,12 @@ sub read_already_loaded { sub name2file { my ($name) = @_; - list_modules::modname2filename($name) . ".ko"; + my $f = list_modules::modname2filename($name); + if (!$f) { + log::l("warning: unable to get module filename for $name"); + $f = $name; + } + $f . ".ko"; } sub when_load { |