[PATCH] libertas: fix removal of all debugfs files

Holger Schurig hs4233 at mail.mn-solutions.de
Fri Feb 16 05:33:56 EST 2007


libertas: fix removal of all debugfs files

rmmod did not remove /sys/kernel/debug/libertas_wireless/eth1/
subscribed_events/high_snr. After I fixed this, I noticed that
it also didn't remove /sys/kernel/debug/libertas_wireless/eth1
as well.

Signed-off-by: Holger Schurig <hs4233 at mail.mn-solutions.de>

---

With this patch applied I can insmod/rmmod usb8xxx at will.

--- libertas-2.6.orig/drivers/net/wireless/libertas/debugfs.c
+++ libertas-2.6/drivers/net/wireless/libertas/debugfs.c
@@ -1759,7 +1759,7 @@
 
 	debugfs_remove(priv->regs_dir);
 
-	for(i=0; i<ARRAY_SIZE(debugfs_files); i++)
+	for(i=0; i<ARRAY_SIZE(debugfs_events_files); i++)
 		debugfs_remove(priv->debugfs_events_files[i]);
 
 	debugfs_remove(priv->events_dir);
@@ -1768,6 +1768,7 @@
 #endif
 	for(i=0; i<ARRAY_SIZE(debugfs_files); i++)
 		debugfs_remove(priv->debugfs_files[i]);
+	debugfs_remove(priv->debugfs_dir);
 }
 
 /* debug entry */



More information about the libertas-dev mailing list