[ofw] patch: [IBBUS] Handling a situation when __complete_send_mad receives NULL instead of p_mad_wr parameter

Tzachi Dar tzachid at mellanox.co.il
Tue Aug 31 06:49:37 PDT 2010


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;

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.openfabrics.org/pipermail/ofw/attachments/20100831/96c17391/attachment.html>


More information about the ofw mailing list