summaryrefslogtreecommitdiffstats
path: root/kernel/list_modules.pm
diff options
context:
space:
mode:
Diffstat (limited to 'kernel/list_modules.pm')
-rw-r--r--kernel/list_modules.pm2
1 files changed, 2 insertions, 0 deletions
diff --git a/kernel/list_modules.pm b/kernel/list_modules.pm
index 07d7e972e..e0fc3bce4 100644
--- a/kernel/list_modules.pm
+++ b/kernel/list_modules.pm
@@ -311,6 +311,8 @@ sub filename2modname {
}
sub modname2filename {
+ load_dependencies($::prefix . '/lib/modules/' . c::kernel_version() . '/modules.dep')
+ if !%filenames;
$filenames{$_[0]};
}