]> git.hungrycats.org Git - linux/commitdiff
[DECNET]: Better way to prevent decnet module unload.
authorStephen Hemminger <shemminger@osdl.org>
Mon, 5 Jan 2004 04:57:39 +0000 (20:57 -0800)
committerStephen Hemminger <shemminger@osdl.org>
Mon, 5 Jan 2004 04:57:39 +0000 (20:57 -0800)
net/decnet/af_decnet.c

index 5d161791535465164dac232b88b57fe93f7160ce..88ba557fe74770584630095159f47b79328ab178 100644 (file)
@@ -2376,17 +2376,17 @@ static int __init decnet_init(void)
 
        dn_register_sysctl();
 
-       /*
-        * Prevent DECnet module unloading until its fixed properly.
-        * Requires an audit of the code to check for memory leaks and
-        * initialisation problems etc.
-        */
-       try_module_get(THIS_MODULE);
-
        return 0;
 
 }
+module_init(decnet_init);
 
+/*
+ * Prevent DECnet module unloading until its fixed properly.
+ * Requires an audit of the code to check for memory leaks and
+ * initialisation problems etc.
+ */
+#if 0
 static void __exit decnet_exit(void)
 {
        sock_unregister(AF_DECnet);
@@ -2405,6 +2405,5 @@ static void __exit decnet_exit(void)
 
        kmem_cache_destroy(dn_sk_cachep);
 }
-
-module_init(decnet_init);
 module_exit(decnet_exit);
+#endif