diff options
author | Marek Lindner <lindner_marek@yahoo.de> | 2010-06-26 00:28:25 +0200 |
---|---|---|
committer | Greg Kroah-Hartman <gregkh@suse.de> | 2010-07-08 12:17:33 -0700 |
commit | 08f20b5e07d17c36a6790fa8b0f2554b6735cf59 (patch) | |
tree | 0ce6c0c2a6fb2681852c3a0d1a0214b532561f2e | |
parent | 62c2072003074f3e7fdc1bfb07f4362215b49937 (diff) | |
download | op-kernel-dev-08f20b5e07d17c36a6790fa8b0f2554b6735cf59.zip op-kernel-dev-08f20b5e07d17c36a6790fa8b0f2554b6735cf59.tar.gz |
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 <lindner_marek@yahoo.de>
Signed-off-by: Sven Eckelmann <sven.eckelmann@gmx.de>
Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
-rw-r--r-- | drivers/staging/batman-adv/main.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/staging/batman-adv/main.c b/drivers/staging/batman-adv/main.c index ae88806..d7e2960 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); |