summaryrefslogtreecommitdiffstats
path: root/kernel
diff options
context:
space:
mode:
Diffstat (limited to 'kernel')
-rw-r--r--kernel/list_modules.pm2
1 files changed, 1 insertions, 1 deletions
diff --git a/kernel/list_modules.pm b/kernel/list_modules.pm
index b5359c6f6..7a84cd7ad 100644
--- a/kernel/list_modules.pm
+++ b/kernel/list_modules.pm
@@ -303,7 +303,7 @@ sub load_dependencies {
}
sub dependencies_closure {
- my @l = map { dependencies_closure($_) } @{$moddeps{$_[0]}{deps} || []};
+ my @l = map { dependencies_closure($_) } @{exists $moddeps{$_[0]} && $moddeps{$_[0]}{deps} || []};
(@l, $_[0]);
}