[ofw] [PATCH] stop leaking spin lock

Smith, Stan stan.smith at intel.com
Tue Sep 21 17:11:34 PDT 2010


Missing spin lock free call for remove_lock.

signed-off-by: stan smith <stan.smith at intel.com>

--- a/ulp/ipoib_NDIS6_CM/kernel/ipoib_port.cpp  Tue Sep 21 17:03:57 2010
+++ b/ulp/ipoib_NDIS6_CM/kernel/ipoib_port.cpp  Tue Sep 21 17:03:19 2010
@@ -6131,8 +6131,9 @@
                        cl_obj_destroy( &p_endpt->obj );
                }
        }
-
        p_port->endpt_mgr.thread_is_done++;
+
+       NdisFreeSpinLock( &p_port->endpt_mgr.remove_lock );
        NdisFreeSpinLock( &p_port->endpt_mgr.conn_lock );

        IPOIB_PRINT_EXIT( TRACE_LEVEL_INFORMATION, IPOIB_DBG_INIT,



More information about the ofw mailing list