summaryrefslogtreecommitdiff
path: root/modutils
diff options
context:
space:
mode:
Diffstat (limited to 'modutils')
-rw-r--r--modutils/modprobe.c5
1 files changed, 5 insertions, 0 deletions
diff --git a/modutils/modprobe.c b/modutils/modprobe.c
index 98003ca..83244fc 100644
--- a/modutils/modprobe.c
+++ b/modutils/modprobe.c
@@ -470,6 +470,11 @@ static void check_dep ( char *mod, struct mod_list_t **head, struct mod_list_t *
return;
}
+ if ( !path ) {
+ bb_error_msg ("module %s not found.", mod);
+ return;
+ }
+
// search for duplicates
for ( find = *head; find; find = find-> m_next ) {
if ( !strcmp ( mod, find-> m_name )) {