mirror of
https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
synced 2026-05-09 19:51:25 -04:00
Merge branch 'for-5.17/kallsyms' into for-linus
This commit is contained in:
@@ -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;
|
||||
}
|
||||
|
||||
@@ -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:
|
||||
|
||||
Reference in New Issue
Block a user