[ofw] PATCH: [ipoib] Fix releasing a lock too early.

Tzachi Dar tzachid at mellanox.co.il
Wed Nov 5 06:14:22 PST 2008


Index: Q:/projinf4/trunk/ulp/ipoib/kernel/ipoib_port.c
===================================================================
--- Q:/projinf4/trunk/ulp/ipoib/kernel/ipoib_port.c (revision 3429)
+++ Q:/projinf4/trunk/ulp/ipoib/kernel/ipoib_port.c (revision 3430)
@@ -5731,12 +5731,12 @@
   cl_memclr(&port_info, sizeof(port_info));
   port_info.base_lid = p_port->base_lid;
   status = __endpt_mgr_add_local( p_port, &port_info );
-  cl_obj_unlock( &p_port->obj );
   if( status != IB_SUCCESS )
   {
    IPOIB_PRINT( TRACE_LEVEL_ERROR, IPOIB_DBG_ERROR,
     ("__endpt_mgr_add_local returned %s\n",
     p_port->p_adapter->p_ifc->get_err_str( status )) );
+    cl_obj_unlock( &p_port->obj );
    goto err;
   }
  }

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.openfabrics.org/pipermail/ofw/attachments/20081105/85de4887/attachment.html>


More information about the ofw mailing list