Skip to content

Commit

Permalink
Staging: batman-adv: fix early debugfs deinitialization
Browse files Browse the repository at this point in the history
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>
  • Loading branch information
Marek Lindner authored and Greg Kroah-Hartman committed Jul 8, 2010
1 parent 62c2072 commit 08f20b5
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion drivers/staging/batman-adv/main.c
Original file line number Diff line number Diff line change
Expand Up @@ -148,6 +148,7 @@ void cleanup_module(void)
{
deactivate_module();

debugfs_destroy();
unregister_netdevice_notifier(&hard_if_notifier);
hardif_remove_interfaces();

Expand Down Expand Up @@ -212,7 +213,6 @@ void deactivate_module(void)
hna_global_free();

synchronize_net();
debugfs_destroy();

synchronize_rcu();
atomic_set(&module_state, MODULE_INACTIVE);
Expand Down

0 comments on commit 08f20b5

Please sign in to comment.