From 6fd1517bae1e053935a418f17dcfad86e5f3f1ec Mon Sep 17 00:00:00 2001 From: Leonid Kelly Date: Wed, 26 May 2010 09:25:49 +0000 Subject: [PATCH] [IBAL] Avoid the BSOD that can happen as a race consequence. signed-off-by: alex naslednikov git-svn-id: svn://openib.tc.cornell.edu/gen1@2812 ad392aa1-c5ef-ae45-8dd8-e69d62a5ef86 --- trunk/core/al/kernel/al_smi.c | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/trunk/core/al/kernel/al_smi.c b/trunk/core/al/kernel/al_smi.c index a94924f8..43bd54e9 100644 --- a/trunk/core/al/kernel/al_smi.c +++ b/trunk/core/al/kernel/al_smi.c @@ -3296,7 +3296,13 @@ spl_qp_alias_recv_cb( CL_ASSERT( mad_svc_context ); CL_ASSERT( p_mad_response ); - CL_ASSERT( p_mad_response->send_context1 ); + + if ( !p_mad_response->send_context1 ) { + CL_ASSERT( p_mad_response->send_context1 ); + ib_put_mad( p_mad_response ); + AL_EXIT( AL_DBG_SMI ); + return; + } /* Initialize pointers. */ p_spl_qp_svc = mad_svc_context; -- 2.41.0