diff options
author | Luis R. Rodriguez <mcgrof@kernel.org> | 2017-06-28 21:32:31 -0400 |
---|---|---|
committer | Jessica Yu <jeyu@kernel.org> | 2017-06-29 08:19:17 -0400 |
commit | 96b5b19459b3c2aed2872bac42cbe19edfae710f (patch) | |
tree | 388beca54742e2427327435c0fc32ad017e5a44e | |
parent | 165d1cc0074b2f938586274776d029b9bce914c4 (diff) |
module: make the modinfo name const
This can be accomplished by making blacklisted() also accept const.
Signed-off-by: Luis R. Rodriguez <mcgrof@kernel.org>
Acked-by: Kees Cook <keescook@chromium.org>
[jeyu: fix typo]
Signed-off-by: Jessica Yu <jeyu@kernel.org>
-rw-r--r-- | kernel/module.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/kernel/module.c b/kernel/module.c index afc6ede7bcdf..d07287707557 100644 --- a/kernel/module.c +++ b/kernel/module.c | |||
@@ -302,7 +302,7 @@ int unregister_module_notifier(struct notifier_block *nb) | |||
302 | EXPORT_SYMBOL(unregister_module_notifier); | 302 | EXPORT_SYMBOL(unregister_module_notifier); |
303 | 303 | ||
304 | struct load_info { | 304 | struct load_info { |
305 | char *name; | 305 | const char *name; |
306 | Elf_Ehdr *hdr; | 306 | Elf_Ehdr *hdr; |
307 | unsigned long len; | 307 | unsigned long len; |
308 | Elf_Shdr *sechdrs; | 308 | Elf_Shdr *sechdrs; |
@@ -3265,7 +3265,7 @@ int __weak module_frob_arch_sections(Elf_Ehdr *hdr, | |||
3265 | 3265 | ||
3266 | /* module_blacklist is a comma-separated list of module names */ | 3266 | /* module_blacklist is a comma-separated list of module names */ |
3267 | static char *module_blacklist; | 3267 | static char *module_blacklist; |
3268 | static bool blacklisted(char *module_name) | 3268 | static bool blacklisted(const char *module_name) |
3269 | { | 3269 | { |
3270 | const char *p; | 3270 | const char *p; |
3271 | size_t len; | 3271 | size_t len; |