diff options
Diffstat (limited to 'lib/dynamic_debug.c')
-rw-r--r-- | lib/dynamic_debug.c | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/lib/dynamic_debug.c b/lib/dynamic_debug.c index 7b76f43edaef..7bdf98c37e91 100644 --- a/lib/dynamic_debug.c +++ b/lib/dynamic_debug.c | |||
@@ -849,8 +849,10 @@ int ddebug_add_module(struct _ddebug *tab, unsigned int n, | |||
849 | struct ddebug_table *dt; | 849 | struct ddebug_table *dt; |
850 | 850 | ||
851 | dt = kzalloc(sizeof(*dt), GFP_KERNEL); | 851 | dt = kzalloc(sizeof(*dt), GFP_KERNEL); |
852 | if (dt == NULL) | 852 | if (dt == NULL) { |
853 | pr_err("error adding module: %s\n", name); | ||
853 | return -ENOMEM; | 854 | return -ENOMEM; |
855 | } | ||
854 | /* | 856 | /* |
855 | * For built-in modules, name lives in .rodata and is | 857 | * For built-in modules, name lives in .rodata and is |
856 | * immortal. For loaded modules, name points at the name[] | 858 | * immortal. For loaded modules, name points at the name[] |