Staging: batman-adv: fix early debugfs deinitialization
authorMarek Lindner <lindner_marek@yahoo.de>
Fri, 25 Jun 2010 22:28:25 +0000 (00:28 +0200)
committerGreg Kroah-Hartman <gregkh@suse.de>
Thu, 8 Jul 2010 19:17:33 +0000 (12:17 -0700)
The debugfs files are initialized at load time only but would get
deinitialized when the module changed in it deactivate (sleeping)
state. As a consequence the debugfs files are not accessible
anymore.

Signed-off-by: Marek Lindner <lindner_marek@yahoo.de>
Signed-off-by: Sven Eckelmann <sven.eckelmann@gmx.de>
Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
drivers/staging/batman-adv/main.c

index ae88806..d7e2960 100644 (file)
@@ -148,6 +148,7 @@ void cleanup_module(void)
 {
        deactivate_module();
 
+       debugfs_destroy();
        unregister_netdevice_notifier(&hard_if_notifier);
        hardif_remove_interfaces();
 
@@ -212,7 +213,6 @@ void deactivate_module(void)
        hna_global_free();
 
        synchronize_net();
-       debugfs_destroy();
 
        synchronize_rcu();
        atomic_set(&module_state, MODULE_INACTIVE);