aboutsummaryrefslogtreecommitdiffstats
path: root/mm/memory_hotplug.c
diff options
context:
space:
mode:
authorJessica Yu <jeyu@kernel.org>2020-01-17 13:32:21 +0100
committerJessica Yu <jeyu@kernel.org>2020-01-20 16:59:39 +0100
commit708e0ada1916be765b7faa58854062f2bc620bbf (patch)
tree1d48125bdee9fdac04df6f33209acf21c9d6a8ed /mm/memory_hotplug.c
parentmodsign: print module name along with error message (diff)
downloadlinux-dev-708e0ada1916be765b7faa58854062f2bc620bbf.tar.xz
linux-dev-708e0ada1916be765b7faa58854062f2bc620bbf.zip
module: avoid setting info->name early in case we can fall back to info->mod->name
In setup_load_info(), info->name (which contains the name of the module, mostly used for early logging purposes before the module gets set up) gets unconditionally assigned if .modinfo is missing despite the fact that there is an if (!info->name) check near the end of the function. Avoid assigning a placeholder string to info->name if .modinfo doesn't exist, so that we can fall back to info->mod->name later on. Fixes: 5fdc7db6448a ("module: setup load info before module_sig_check()") Reviewed-by: Miroslav Benes <mbenes@suse.cz> Signed-off-by: Jessica Yu <jeyu@kernel.org>
Diffstat (limited to 'mm/memory_hotplug.c')
0 files changed, 0 insertions, 0 deletions