[openib-general] [OOPS] unloading ib_mthca with ib0 up

Roland Dreier roland at topspin.com
Wed Sep 15 20:36:45 PDT 2004


Does this fix the oops?

Thanks,
  Roland

Index: infiniband/ulp/ipoib/ipoib_main.c
===================================================================
--- infiniband/ulp/ipoib/ipoib_main.c	(revision 835)
+++ infiniband/ulp/ipoib/ipoib_main.c	(working copy)
@@ -509,8 +509,8 @@
 	/* Delete any child interfaces first */
 	/* Safe since it's either protected by ipoib_device_mutex or empty */
 	list_for_each_entry_safe(cpriv, tcpriv, &priv->child_intfs, list) {
-		ipoib_dev_cleanup(cpriv->dev);
 		unregister_netdev(cpriv->dev);
+		ipoib_dev_cleanup(cpriv->dev);
 
 		list_del(&cpriv->list);
 



More information about the general mailing list