projects
/
project
/
ubox.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
kmodloader: load_modprobe: abort after 2 attempts
[project/ubox.git]
/
kmodloader.c
diff --git
a/kmodloader.c
b/kmodloader.c
index 1b6488f0ff4b8f28f4039346660d01afac58c12d..3196deb94e17c6fab7e8810b51f9b0be8469f5c8 100644
(file)
--- a/
kmodloader.c
+++ b/
kmodloader.c
@@
-637,14
+637,16
@@
static int load_modprobe(void)
if (mn->is_alias)
continue;
m = mn->m;
if (mn->is_alias)
continue;
m = mn->m;
- if ((m->state == PROBE) && (!deps_available(m, 0))) {
+ if ((m->state == PROBE) && (!deps_available(m, 0))
&& m->error < 2
) {
if (!insert_module(get_module_path(m->name), (m->opts) ? (m->opts) : (""))) {
m->state = LOADED;
m->error = 0;
loaded++;
continue;
}
if (!insert_module(get_module_path(m->name), (m->opts) ? (m->opts) : (""))) {
m->state = LOADED;
m->error = 0;
loaded++;
continue;
}
- m->error = 1;
+
+ if (++m->error > 1)
+ ULOG_ERR("failed to load %s\n", m->name);
}
if ((m->state == PROBE) || m->error)
}
if ((m->state == PROBE) || m->error)