[ofa-general] [PATCH] IB: dereference of dev->ibdev.iwcm in c2_register_device()

Roland Dreier rdreier at cisco.com
Tue Sep 1 13:57:30 PDT 2009


I tend to prefer patches that compile :) --

diff --git a/drivers/infiniband/hw/amso1100/c2_provider.c b/drivers/infiniband/hw/amso1100/c2_provider.c
index 3f2ee64..ad723bd 100644
--- a/drivers/infiniband/hw/amso1100/c2_provider.c
+++ b/drivers/infiniband/hw/amso1100/c2_provider.c
@@ -874,7 +874,7 @@ int c2_register_device(struct c2_dev *dev)
 		if (ret)
 			goto out_unregister_ibdev;
 	}
-	goto out3;
+	goto out;
 
 out_unregister_ibdev:
 	ib_unregister_device(&dev->ibdev);

but anyway, applied with that fix, thanks.



More information about the general mailing list