aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--modutils/modprobe.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/modutils/modprobe.c b/modutils/modprobe.c
index ce8b0b886..0e8aa9e85 100644
--- a/modutils/modprobe.c
+++ b/modutils/modprobe.c
@@ -425,7 +425,7 @@ static int do_modprobe(struct module_entry *m)
425 425
426 rc = 0; 426 rc = 0;
427 fn = llist_pop(&m->deps); /* we leak it */ 427 fn = llist_pop(&m->deps); /* we leak it */
428 m2 = get_or_add_modentry(fn); 428 m2 = get_or_add_modentry(bb_get_last_path_component_nostrip(fn));
429 429
430 if (option_mask32 & OPT_REMOVE) { 430 if (option_mask32 & OPT_REMOVE) {
431 /* modprobe -r */ 431 /* modprobe -r */