Skip to content

Commit b2dfc3f

Browse files
committed
Merge branch 'for-5.17/kallsyms' into for-linus
2 parents 50a0f3f + f5bdb34 commit b2dfc3f

File tree

2 files changed

+3
-0
lines changed

2 files changed

+3
-0
lines changed

kernel/kallsyms.c

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -223,6 +223,7 @@ int kallsyms_on_each_symbol(int (*fn)(void *, const char *, struct module *,
223223
ret = fn(data, namebuf, NULL, kallsyms_sym_address(i));
224224
if (ret != 0)
225225
return ret;
226+
cond_resched();
226227
}
227228
return 0;
228229
}

kernel/module.c

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4462,6 +4462,8 @@ int module_kallsyms_on_each_symbol(int (*fn)(void *, const char *,
44624462
mod, kallsyms_symbol_value(sym));
44634463
if (ret != 0)
44644464
goto out;
4465+
4466+
cond_resched();
44654467
}
44664468
}
44674469
out:

0 commit comments

Comments
 (0)