[openib-general] [PATCH] ipoib_cleanup_module

Eli Cohen eli at mellanox.co.il
Thu Apr 6 05:49:35 PDT 2006


ensure reverse order of creation or else might cause errors
if debugfs is used.

Signed-off-by: Eli Cohen <eli at mellanox.co.il>

Index: latest/drivers/infiniband/ulp/ipoib/ipoib_main.c
===================================================================
--- latest.orig/drivers/infiniband/ulp/ipoib/ipoib_main.c
+++ latest/drivers/infiniband/ulp/ipoib/ipoib_main.c
@@ -1216,8 +1216,8 @@ err_fs:
 static void __exit ipoib_cleanup_module(void)
 {
 	ib_unregister_client(&ipoib_client);
-	ipoib_unregister_debugfs();
 	destroy_workqueue(ipoib_workqueue);
+	ipoib_unregister_debugfs();
 }
 
 module_init(ipoib_init_module);



More information about the general mailing list