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)
commit07ade45a765bb7d7571f1a89ab8edfa4ce5e7268
treebd526610e891d28401f765b6efac416634c3430d
parentecc726f1458e7aa50e120ff334f0a3be5cccd94c
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