Merge branch 'for-5.17/kallsyms' into for-linus

This commit is contained in:
Petr Mladek 2022-01-14 13:36:32 +01:00
commit b2dfc3fe73
2 changed files with 3 additions and 0 deletions

View File

@ -223,6 +223,7 @@ int kallsyms_on_each_symbol(int (*fn)(void *, const char *, struct module *,
ret = fn(data, namebuf, NULL, kallsyms_sym_address(i));
if (ret != 0)
return ret;
cond_resched();
}
return 0;
}

View File

@ -4462,6 +4462,8 @@ int module_kallsyms_on_each_symbol(int (*fn)(void *, const char *,
mod, kallsyms_symbol_value(sym));
if (ret != 0)
goto out;
cond_resched();
}
}
out: