[IPoIB NDIS 6.0 CM] Fixing a bug when IPoIB does not dereference port object during...
authortzachid <tzachid@ad392aa1-c5ef-ae45-8dd8-e69d62a5ef86>
Mon, 30 Nov 2009 15:39:35 +0000 (15:39 +0000)
committertzachid <tzachid@ad392aa1-c5ef-ae45-8dd8-e69d62a5ef86>
Mon, 30 Nov 2009 15:39:35 +0000 (15:39 +0000)
git-svn-id: svn://openib.tc.cornell.edu/gen1/trunk@2603 ad392aa1-c5ef-ae45-8dd8-e69d62a5ef86

ulp/ipoib_NDIS6_CM/kernel/ipoib_port.cpp

index dec7dce..670eafe 100644 (file)
@@ -3899,7 +3899,7 @@ mc_end:
 \r
        if( status != NDIS_STATUS_SUCCESS )\r
        {\r
-               ASSERT(FALSE);\r
+//             ASSERT(FALSE);\r
                cl_perf_start( ProcessFailedSends );\r
                __send_complete_net_buffer(s_buf, NDIS_STATUS_FAILURE, complete_flags, TRUE);\r
                cl_perf_stop( &p_port->p_adapter->perf, ProcessFailedSends );\r
@@ -6178,6 +6178,7 @@ __endpt_mgr_remove(
        }\r
 \r
        cl_obj_unlock( &p_port->obj );\r
+       cl_obj_destroy( &p_endpt->obj );\r
 \r
        //TODO CM\r
        //endpt_cm_destroy_conn( p_port, p_endpt );\r
@@ -6643,6 +6644,7 @@ ipoib_port_remove_endpt(
                }\r
 \r
                cl_obj_unlock( &p_port->obj );\r
+               cl_obj_destroy( &p_endpt->obj );\r
                //TODO CM\r
                //endpt_cm_destroy_conn( p_port, p_endpt );\r
 \r