← Commit list

725b5a387

Denys Vlasenko
Denys Vlasenko
2010-01-10
FAILED Duration: 27s

Subject

modprobe: it's not an error if module is already loaded. Closes bug 833

Binary

No binary (build failed)

Architecture & Compiler Flags

Architecture: x86_64-linux-gnu Compiler: gcc (Ubuntu 11.4.0-1ubuntu1~22.04.3) 11.4.0

—

Build Log

(log yok)

Commit Diff GitHub →

modutils/modprobe.c+2 -0
@@ -290,6 +290,8 @@ static int do_modprobe(struct module_entry *m)
options = gather_options_str(options, G.cmdline_mopts);
rc = bb_init_module(fn, options);
DBG("loaded %s '%s', rc:%d", fn, options, rc);
+ if (rc == EEXIST)
+ rc = 0;
free(options);
if (rc) {
bb_error_msg("failed to load module %s (%s): %s",