Applied on 2881. Thanks Tzachi
From: [email protected] [mailto:[email protected]] On Behalf Of Tzachi Dar Sent: Tuesday, August 31, 2010 10:58 AM To: [email protected] Subject: [ofw] patch: Add an assert to check cases where cl_obj_dref is causing a destroy of the object without destroy being called first Index: b:/users/tzachid/MLNX_WinOF-2_1_2/core/complib/cl_obj.c =================================================================== --- b:/users/tzachid/MLNX_WinOF-2_1_2/core/complib/cl_obj.c (revision 6356) +++ b:/users/tzachid/MLNX_WinOF-2_1_2/core/complib/cl_obj.c (revision 6357) @@ -485,6 +485,7 @@ /* If the reference count went to 0, the object should be destroyed. */ if( ref_cnt == 0 ) { + CL_ASSERT( p_obj->state == CL_DESTROYING ); if( p_obj->destroy_type == CL_DESTROY_ASYNC ) { /* Queue the object for asynchronous destruction. */
_______________________________________________ ofw mailing list [email protected] http://lists.openfabrics.org/cgi-bin/mailman/listinfo/ofw
