projects/linux·commit 39dbbb45

acer-wmi: remove debugfs entries upon unloading

39dbbb45 · Russ Dill <[email protected]> · 2008-09-02 14:35:40 -07:00

The exit function neglects to remove debugfs entries, leading to a BUG
on reload.

[[email protected]: cleanups]
Signed-off-by: Russ Dill <[email protected]>
Acked-by: Carlos Corbacho <[email protected]>
Cc: Andi Kleen <[email protected]>
Signed-off-by: Andrew Morton <[email protected]>
Signed-off-by: Linus Torvalds <[email protected]>
Commit
39dbbb4523754df4a822c69191a848a03e556dc7
Parents
6ccfa806

Changes

1 files changed · +2 −1

FileStatusAddDelContent
drivers/misc/acer-wmi.cmodified+2−1View file

drivers/misc/acer-wmi.c

View file
diff --git a/drivers/misc/acer-wmi.c b/drivers/misc/acer-wmi.c
index c6c77a5..d8b0d32 100644
--- a/drivers/misc/acer-wmi.c
+++ b/drivers/misc/acer-wmi.c
@@ -1189,7 +1189,7 @@ static int create_debugfs(void)
return 0;
error_debugfs:
- remove_debugfs();
+ remove_debugfs();
return -ENOMEM;
}
@@ -1272,6 +1272,7 @@ error_platform_register:
static void __exit acer_wmi_exit(void)
{
remove_sysfs(acer_platform_device);
+ remove_debugfs();
platform_device_del(acer_platform_device);
platform_driver_unregister(&acer_platform_driver);