summaryrefslogtreecommitdiffstats
path: root/kernel
diff options
context:
space:
mode:
authorPetr Mladek <pmladek@suse.com>2022-01-14 13:36:32 +0100
committerPetr Mladek <pmladek@suse.com>2022-01-14 13:36:32 +0100
commitb2dfc3fe73b5b305b13467e39386f77133590ea8 (patch)
treec4baf776a8f08de509a57a4f8f62daa1cd9531ac /kernel
parent50a0f3f55e382b313e7cbebdf8ccf1593296e16f (diff)
parentf5bdb34bf0c9314548f2d8e2360b703ff3610303 (diff)
downloadlinux-b2dfc3fe73b5b305b13467e39386f77133590ea8.tar.bz2
Merge branch 'for-5.17/kallsyms' into for-linus
Diffstat (limited to 'kernel')
-rw-r--r--kernel/kallsyms.c1
-rw-r--r--kernel/module.c2
2 files changed, 3 insertions, 0 deletions
diff --git a/kernel/kallsyms.c b/kernel/kallsyms.c
index 0ba87982d017..2a9afe484aec 100644
--- a/kernel/kallsyms.c
+++ b/kernel/kallsyms.c
@@ -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;
}
diff --git a/kernel/module.c b/kernel/module.c
index 40ec9a030eec..c96160f7f3f5 100644
--- a/kernel/module.c
+++ b/kernel/module.c
@@ -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: