diff options
| author | Jon Mediero <[email protected]> | 2021-05-20 12:23:26 +0000 |
|---|---|---|
| committer | Jessica Yu <[email protected]> | 2021-05-26 12:55:45 +0000 |
| commit | 2c0f0f3639562d6e38ee9705303c6457c4936eac (patch) | |
| tree | b9e995fcb120cd0f829983170af70997f5686a23 /lib/dynamic_debug.c | |
| parent | kernel/module: Use BUG_ON instead of if condition followed by BUG (diff) | |
| download | kernel-2c0f0f3639562d6e38ee9705303c6457c4936eac.tar.gz kernel-2c0f0f3639562d6e38ee9705303c6457c4936eac.zip | |
module: correctly exit module_kallsyms_on_each_symbol when fn() != 0
Commit 013c1667cf78 ("kallsyms: refactor
{,module_}kallsyms_on_each_symbol") replaced the return inside the
nested loop with a break, changing the semantics of the function: the
break only exits the innermost loop, so the code continues iterating the
symbols of the next module instead of exiting.
Fixes: 013c1667cf78 ("kallsyms: refactor {,module_}kallsyms_on_each_symbol")
Reviewed-by: Petr Mladek <[email protected]>
Reviewed-by: Miroslav Benes <[email protected]>
Signed-off-by: Jon Mediero <[email protected]>
Signed-off-by: Jessica Yu <[email protected]>
Diffstat (limited to 'lib/dynamic_debug.c')
0 files changed, 0 insertions, 0 deletions
