aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDenis Vlasenko <vda.linux@googlemail.com>2008-08-06 09:41:09 +0000
committerDenis Vlasenko <vda.linux@googlemail.com>2008-08-06 09:41:09 +0000
commit8e8041115121524c3a3d6c06abea53fd1fcbbd62 (patch)
treeb0eedd1a6e44477ff056a2edbdeff9b2d991dc8b
parent728161b5564afb94c5518fc440e8152f01e46068 (diff)
downloadbusybox-8e8041115121524c3a3d6c06abea53fd1fcbbd62.tar.gz
modprobe-small: fix infinite looping, by Timo Teras
-rw-r--r--modutils/modprobe-small.c4
1 files changed, 3 insertions, 1 deletions
diff --git a/modutils/modprobe-small.c b/modutils/modprobe-small.c
index ac08ba7d7..06c45742b 100644
--- a/modutils/modprobe-small.c
+++ b/modutils/modprobe-small.c
@@ -444,8 +444,10 @@ static module_info* find_alias(const char *alias)
if (!modinfo[i].aliases) {
parse_module(&modinfo[i], modinfo[i].pathname);
}
- if (result)
+ if (result) {
+ i++;
continue;
+ }
/* "alias1 symbol:sym1 alias2 symbol:sym2" */
desc = str_2_list(modinfo[i].aliases);
/* Does matching substring exist? */