modprobe-small: fix infinite looping, by Timo Teras
This commit is contained in:
parent
728161b556
commit
8e80411151
@ -444,8 +444,10 @@ static module_info* find_alias(const char *alias)
|
|||||||
if (!modinfo[i].aliases) {
|
if (!modinfo[i].aliases) {
|
||||||
parse_module(&modinfo[i], modinfo[i].pathname);
|
parse_module(&modinfo[i], modinfo[i].pathname);
|
||||||
}
|
}
|
||||||
if (result)
|
if (result) {
|
||||||
|
i++;
|
||||||
continue;
|
continue;
|
||||||
|
}
|
||||||
/* "alias1 symbol:sym1 alias2 symbol:sym2" */
|
/* "alias1 symbol:sym1 alias2 symbol:sym2" */
|
||||||
desc = str_2_list(modinfo[i].aliases);
|
desc = str_2_list(modinfo[i].aliases);
|
||||||
/* Does matching substring exist? */
|
/* Does matching substring exist? */
|
||||||
|
Loading…
Reference in New Issue
Block a user