Skip to content
Commit 2c0f0f36 authored by Jon Mediero's avatar Jon Mediero Committed by Jessica Yu
Browse files

module: correctly exit module_kallsyms_on_each_symbol when fn() != 0



Commit 013c1667 ("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: 013c1667 ("kallsyms: refactor {,module_}kallsyms_on_each_symbol")
Reviewed-by: default avatarPetr Mladek <pmladek@suse.com>
Reviewed-by: default avatarMiroslav Benes <mbenes@suse.cz>
Signed-off-by: default avatarJon Mediero <jmdr@disroot.org>
Signed-off-by: default avatarJessica Yu <jeyu@kernel.org>
parent 02b2fb45
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment