may occur during Verifier low-mem simulation run. Mlnx - 4990

signed off by:xalex

Index: B:/users/tzachid/projinf9/trunk/core/al/kernel/al_smi.c
===================================================================
--- B:/users/tzachid/projinf9/trunk/core/al/kernel/al_smi.c        (revision 
4989)
+++ B:/users/tzachid/projinf9/trunk/core/al/kernel/al_smi.c     (revision 4990)
@@ -893,7 +893,10 @@

                /* Construct a send work completion. */
                cl_memclr( &wc, sizeof( ib_wc_t ) );
-              wc.wr_id             = p_mad_wr->send_wr.wr_id;
+             if (p_mad_wr) {
+                             // Handling the special race where p_mad_wr that 
comes from spl_qp can be NULL
+                             wc.wr_id             = p_mad_wr->send_wr.wr_id;
+             }
                wc.wc_type       = IB_WC_SEND;
                wc.status             = wc_status;

_______________________________________________
ofw mailing list
[email protected]
http://lists.openfabrics.org/cgi-bin/mailman/listinfo/ofw

Reply via email to