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 /drivers/staging/batman-adv | |
parent | 62c2072003074f3e7fdc1bfb07f4362215b49937 (diff) | |
download | linux-stable-08f20b5e07d17c36a6790fa8b0f2554b6735cf59.tar.gz linux-stable-08f20b5e07d17c36a6790fa8b0f2554b6735cf59.tar.bz2 linux-stable-08f20b5e07d17c36a6790fa8b0f2554b6735cf59.zip |
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>
Diffstat (limited to 'drivers/staging/batman-adv')
-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 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); |