diff options
author | Denis Vlasenko <vda.linux@googlemail.com> | 2008-08-06 09:41:09 +0000 |
---|---|---|
committer | Denis Vlasenko <vda.linux@googlemail.com> | 2008-08-06 09:41:09 +0000 |
commit | 8e8041115121524c3a3d6c06abea53fd1fcbbd62 (patch) | |
tree | b0eedd1a6e44477ff056a2edbdeff9b2d991dc8b | |
parent | 728161b5564afb94c5518fc440e8152f01e46068 (diff) | |
download | busybox-w32-8e8041115121524c3a3d6c06abea53fd1fcbbd62.tar.gz busybox-w32-8e8041115121524c3a3d6c06abea53fd1fcbbd62.tar.bz2 busybox-w32-8e8041115121524c3a3d6c06abea53fd1fcbbd62.zip |
modprobe-small: fix infinite looping, by Timo Teras
-rw-r--r-- | modutils/modprobe-small.c | 4 |
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) | |||
444 | if (!modinfo[i].aliases) { | 444 | if (!modinfo[i].aliases) { |
445 | parse_module(&modinfo[i], modinfo[i].pathname); | 445 | parse_module(&modinfo[i], modinfo[i].pathname); |
446 | } | 446 | } |
447 | if (result) | 447 | if (result) { |
448 | i++; | ||
448 | continue; | 449 | continue; |
450 | } | ||
449 | /* "alias1 symbol:sym1 alias2 symbol:sym2" */ | 451 | /* "alias1 symbol:sym1 alias2 symbol:sym2" */ |
450 | desc = str_2_list(modinfo[i].aliases); | 452 | desc = str_2_list(modinfo[i].aliases); |
451 | /* Does matching substring exist? */ | 453 | /* Does matching substring exist? */ |