From 8e8041115121524c3a3d6c06abea53fd1fcbbd62 Mon Sep 17 00:00:00 2001 From: Denis Vlasenko Date: Wed, 6 Aug 2008 09:41:09 +0000 Subject: modprobe-small: fix infinite looping, by Timo Teras --- modutils/modprobe-small.c | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) 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? */ -- cgit v1.2.3