aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--kernel/module.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/kernel/module.c b/kernel/module.c
index eeb3f7b1383..ee7ab612daf 100644
--- a/kernel/module.c
+++ b/kernel/module.c
@@ -71,6 +71,9 @@
71static DEFINE_MUTEX(module_mutex); 71static DEFINE_MUTEX(module_mutex);
72static LIST_HEAD(modules); 72static LIST_HEAD(modules);
73 73
74/* Block module loading/unloading? */
75int modules_disabled = 0;
76
74/* Waiting for a module to finish initializing? */ 77/* Waiting for a module to finish initializing? */
75static DECLARE_WAIT_QUEUE_HEAD(module_wq); 78static DECLARE_WAIT_QUEUE_HEAD(module_wq);
76 79
@@ -778,9 +781,6 @@ static void wait_for_zero_refcount(struct module *mod)
778 mutex_lock(&module_mutex); 781 mutex_lock(&module_mutex);
779} 782}
780 783
781/* Block module loading/unloading? */
782int modules_disabled = 0;
783
784SYSCALL_DEFINE2(delete_module, const char __user *, name_user, 784SYSCALL_DEFINE2(delete_module, const char __user *, name_user,
785 unsigned int, flags) 785 unsigned int, flags)
786{ 786{