diff options
-rw-r--r-- | kernel/module.c | 6 |
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 @@ | |||
71 | static DEFINE_MUTEX(module_mutex); | 71 | static DEFINE_MUTEX(module_mutex); |
72 | static LIST_HEAD(modules); | 72 | static LIST_HEAD(modules); |
73 | 73 | ||
74 | /* Block module loading/unloading? */ | ||
75 | int modules_disabled = 0; | ||
76 | |||
74 | /* Waiting for a module to finish initializing? */ | 77 | /* Waiting for a module to finish initializing? */ |
75 | static DECLARE_WAIT_QUEUE_HEAD(module_wq); | 78 | static 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? */ | ||
782 | int modules_disabled = 0; | ||
783 | |||
784 | SYSCALL_DEFINE2(delete_module, const char __user *, name_user, | 784 | SYSCALL_DEFINE2(delete_module, const char __user *, name_user, |
785 | unsigned int, flags) | 785 | unsigned int, flags) |
786 | { | 786 | { |