mirror of
https://github.com/AuxXxilium/kmod.git
synced 2025-01-27 09:15:01 +07:00
testsuite: fix find_module() finding wrong module
This commit is contained in:
parent
9e2eadb1d7
commit
90fc410b32
@ -107,7 +107,7 @@ static struct mod *find_module(struct mod *_modules, const char *modname)
|
||||
struct mod *mod;
|
||||
|
||||
for (mod = _modules; mod != NULL; mod = mod->next) {
|
||||
if (strcmp(mod->name, modname))
|
||||
if (strcmp(mod->name, modname) == 0)
|
||||
return mod;
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user