]> git.openfabrics.org - ~shefty/rdma-win.git/commitdiff
[IBAL] Avoid the BSOD that can happen as a race consequence.
authorLeonid Kelly <leonid@mellanox.co.il>
Wed, 26 May 2010 09:25:49 +0000 (09:25 +0000)
committerLeonid Kelly <leonid@mellanox.co.il>
Wed, 26 May 2010 09:25:49 +0000 (09:25 +0000)
signed-off-by: alex naslednikov <xalex@mellanox.co.il>

git-svn-id: svn://openib.tc.cornell.edu/gen1@2812 ad392aa1-c5ef-ae45-8dd8-e69d62a5ef86

trunk/core/al/kernel/al_smi.c

index a94924f8711d1d44651485a901079272548691a4..43bd54e9375c47a5f083a216cc256e0a174a142c 100644 (file)
@@ -3296,7 +3296,13 @@ spl_qp_alias_recv_cb(
 \r
        CL_ASSERT( mad_svc_context );\r
        CL_ASSERT( p_mad_response );\r
-       CL_ASSERT( p_mad_response->send_context1 );\r
+       \r
+       if ( !p_mad_response->send_context1 ) {\r
+               CL_ASSERT( p_mad_response->send_context1 );\r
+               ib_put_mad( p_mad_response );\r
+               AL_EXIT( AL_DBG_SMI );\r
+               return;\r
+       }\r
 \r
        /* Initialize pointers. */\r
        p_spl_qp_svc = mad_svc_context;\r