diff options
author | Linus Torvalds <torvalds@linux-foundation.org> | 2017-11-15 16:46:33 -0500 |
---|---|---|
committer | Linus Torvalds <torvalds@linux-foundation.org> | 2017-11-15 16:46:33 -0500 |
commit | 1be2172e96e33bfa22a5c7a651f768ef30ce3984 (patch) | |
tree | c5bf050b3914b43976f9c3ae686b21b4175e29c4 /kernel/module.c | |
parent | 3c18767a45650009d02537677ffb7997bd402a2c (diff) | |
parent | ece1996a21eeb344b49200e627c6660111009c10 (diff) |
Merge tag 'modules-for-v4.15' of git://git.kernel.org/pub/scm/linux/kernel/git/jeyu/linux
Pull module updates from Jessica Yu:
"Summary of modules changes for the 4.15 merge window:
- treewide module_param_call() cleanup, fix up set/get function
prototype mismatches, from Kees Cook
- minor code cleanups"
* tag 'modules-for-v4.15' of git://git.kernel.org/pub/scm/linux/kernel/git/jeyu/linux:
module: Do not paper over type mismatches in module_param_call()
treewide: Fix function prototypes for module_param_call()
module: Prepare to convert all module_param_call() prototypes
kernel/module: Delete an error message for a failed memory allocation in add_module_usage()
Diffstat (limited to 'kernel/module.c')
-rw-r--r-- | kernel/module.c | 4 |
1 files changed, 1 insertions, 3 deletions
diff --git a/kernel/module.c b/kernel/module.c index 32c2cdaccd93..222aba4aa960 100644 --- a/kernel/module.c +++ b/kernel/module.c | |||
@@ -847,10 +847,8 @@ static int add_module_usage(struct module *a, struct module *b) | |||
847 | 847 | ||
848 | pr_debug("Allocating new usage for %s.\n", a->name); | 848 | pr_debug("Allocating new usage for %s.\n", a->name); |
849 | use = kmalloc(sizeof(*use), GFP_ATOMIC); | 849 | use = kmalloc(sizeof(*use), GFP_ATOMIC); |
850 | if (!use) { | 850 | if (!use) |
851 | pr_warn("%s: out of memory loading\n", a->name); | ||
852 | return -ENOMEM; | 851 | return -ENOMEM; |
853 | } | ||
854 | 852 | ||
855 | use->source = a; | 853 | use->source = a; |
856 | use->target = b; | 854 | use->target = b; |