diff options
Diffstat (limited to 'kernel/module.c')
-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 22879725678d..795bdc7f5c3f 100644 --- a/kernel/module.c +++ b/kernel/module.c | |||
@@ -2812,7 +2812,7 @@ static struct module *load_module(void __user *umod, | |||
2812 | } | 2812 | } |
2813 | 2813 | ||
2814 | /* This has to be done once we're sure module name is unique. */ | 2814 | /* This has to be done once we're sure module name is unique. */ |
2815 | if (!mod->taints) | 2815 | if (!mod->taints || mod->taints == (1U<<TAINT_CRAP)) |
2816 | dynamic_debug_setup(info.debug, info.num_debug); | 2816 | dynamic_debug_setup(info.debug, info.num_debug); |
2817 | 2817 | ||
2818 | /* Find duplicate symbols */ | 2818 | /* Find duplicate symbols */ |
@@ -2849,7 +2849,7 @@ static struct module *load_module(void __user *umod, | |||
2849 | module_bug_cleanup(mod); | 2849 | module_bug_cleanup(mod); |
2850 | 2850 | ||
2851 | ddebug: | 2851 | ddebug: |
2852 | if (!mod->taints) | 2852 | if (!mod->taints || mod->taints == (1U<<TAINT_CRAP)) |
2853 | dynamic_debug_remove(info.debug); | 2853 | dynamic_debug_remove(info.debug); |
2854 | unlock: | 2854 | unlock: |
2855 | mutex_unlock(&module_mutex); | 2855 | mutex_unlock(&module_mutex); |