Author: marek Date: 2010-06-25 23:59:18 +0200 (Fri, 25 Jun 2010) New Revision: 1726
Modified: trunk/batman-adv/main.c Log: batman-adv: fix early debugfs deinitialization
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
Modified: trunk/batman-adv/main.c =================================================================== --- trunk/batman-adv/main.c 2010-06-24 15:57:29 UTC (rev 1725) +++ trunk/batman-adv/main.c 2010-06-25 21:59:18 UTC (rev 1726) @@ -144,6 +144,7 @@ { deactivate_module();
+ debugfs_destroy(); unregister_netdevice_notifier(&hard_if_notifier); hardif_remove_interfaces();
@@ -209,7 +210,6 @@ hna_global_free();
synchronize_net(); - debugfs_destroy();
synchronize_rcu(); atomic_set(&module_state, MODULE_INACTIVE);