Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux

acer-wmi: remove debugfs entries upon unloading

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

[akpm@linux-foundation.org: cleanups]
Signed-off-by: Russ Dill <Russ.Dill@gmail.com>
Acked-by: Carlos Corbacho <carlos@strangeworlds.co.uk>
Cc: Andi Kleen <ak@linux.intel.com>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>

authored by

Russ Dill and committed by
Linus Torvalds
39dbbb45 6ccfa806

+2 -1
+2 -1
drivers/misc/acer-wmi.c
··· 1189 1189 return 0; 1190 1190 1191 1191 error_debugfs: 1192 - remove_debugfs(); 1192 + remove_debugfs(); 1193 1193 return -ENOMEM; 1194 1194 } 1195 1195 ··· 1272 1272 static void __exit acer_wmi_exit(void) 1273 1273 { 1274 1274 remove_sysfs(acer_platform_device); 1275 + remove_debugfs(); 1275 1276 platform_device_del(acer_platform_device); 1276 1277 platform_driver_unregister(&acer_platform_driver); 1277 1278