Skip to content

Commit

Permalink
Merge branch 'for-5.17/kallsyms' into for-linus
Browse files Browse the repository at this point in the history
  • Loading branch information
Petr Mladek committed Jan 14, 2022
2 parents 50a0f3f + f5bdb34 commit b2dfc3f
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 0 deletions.
1 change: 1 addition & 0 deletions kernel/kallsyms.c
Original file line number Diff line number Diff line change
Expand Up @@ -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;
}
Expand Down
2 changes: 2 additions & 0 deletions kernel/module.c
Original file line number Diff line number Diff line change
Expand Up @@ -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:
Expand Down

0 comments on commit b2dfc3f

Please sign in to comment.