From: Marek Lindner Date: Fri, 25 Jun 2010 22:28:25 +0000 (+0200) Subject: Staging: batman-adv: fix early debugfs deinitialization X-Git-Tag: firefly_0821_release~9833^2~1255^2~1^2~299 X-Git-Url: http://demsky.eecs.uci.edu/git/?a=commitdiff_plain;h=08f20b5e07d17c36a6790fa8b0f2554b6735cf59;p=firefly-linux-kernel-4.4.55.git Staging: 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 Signed-off-by: Sven Eckelmann Signed-off-by: Greg Kroah-Hartman --- diff --git a/drivers/staging/batman-adv/main.c b/drivers/staging/batman-adv/main.c index ae8880620bfb..d7e2960bbe81 100644 --- a/drivers/staging/batman-adv/main.c +++ b/drivers/staging/batman-adv/main.c @@ -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);