]> git.baikalelectronics.ru Git - kernel.git/commit
module: Increase readability of module_kallsyms_lookup_name()
authorChristophe Leroy <christophe.leroy@csgroup.eu>
Mon, 13 Jun 2022 06:02:02 +0000 (08:02 +0200)
committerLuis Chamberlain <mcgrof@kernel.org>
Mon, 11 Jul 2022 17:49:14 +0000 (10:49 -0700)
commitaa09aa9132a3db2734e1a31be321eb9a198cd760
treebd526610e891d28401f765b6efac416634c3430d
parent7eff5eaa1b4703f1aad5edacf5cafad134ff891f
module: Increase readability of module_kallsyms_lookup_name()

module_kallsyms_lookup_name() has several exit conditions but
can't return immediately due to preempt_disable().

Refactor module_kallsyms_lookup_name() to allow returning from
anywhere, and reduce depth.

Signed-off-by: Christophe Leroy <christophe.leroy@csgroup.eu>
Signed-off-by: Luis Chamberlain <mcgrof@kernel.org>
kernel/module/kallsyms.c