diff options
-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 d5938a5c19c4..4d5c16aae745 100644 --- a/kernel/module.c +++ b/kernel/module.c | |||
@@ -2790,7 +2790,7 @@ static struct module *load_module(void __user *umod, | |||
2790 | } | 2790 | } |
2791 | 2791 | ||
2792 | /* This has to be done once we're sure module name is unique. */ | 2792 | /* This has to be done once we're sure module name is unique. */ |
2793 | if (!mod->taints) | 2793 | if (!mod->taints || mod->taints == (1U<<TAINT_CRAP)) |
2794 | dynamic_debug_setup(info.debug, info.num_debug); | 2794 | dynamic_debug_setup(info.debug, info.num_debug); |
2795 | 2795 | ||
2796 | /* Find duplicate symbols */ | 2796 | /* Find duplicate symbols */ |
@@ -2827,7 +2827,7 @@ static struct module *load_module(void __user *umod, | |||
2827 | module_bug_cleanup(mod); | 2827 | module_bug_cleanup(mod); |
2828 | 2828 | ||
2829 | ddebug: | 2829 | ddebug: |
2830 | if (!mod->taints) | 2830 | if (!mod->taints || mod->taints == (1U<<TAINT_CRAP)) |
2831 | dynamic_debug_remove(info.debug); | 2831 | dynamic_debug_remove(info.debug); |
2832 | unlock: | 2832 | unlock: |
2833 | mutex_unlock(&module_mutex); | 2833 | mutex_unlock(&module_mutex); |