[ofw] [Patch][Core] Fix possible BSOD during shutdown
Alex Naslednikov
xalex at mellanox.co.il
Sun May 2 01:58:48 PDT 2010
Avoid the BSOD that can happen as a race consequence.
Signed-off by: Alexander Naslednikov (xalex at mellanox.co.il)
Index: D:/windows/MLNX_VPI_trunk/core/al/kernel/al_smi.c
===================================================================
--- D:/windows/MLNX_VPI_trunk/core/al/kernel/al_smi.c (revision 5854)
+++ D:/windows/MLNX_VPI_trunk/core/al/kernel/al_smi.c (revision 5855)
@@ -3299,7 +3299,14 @@
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;
-------------- next part --------------
A non-text attachment was scrubbed...
Name: core_fix_BSOD_at_shutdown.patch
Type: application/octet-stream
Size: 653 bytes
Desc: core_fix_BSOD_at_shutdown.patch
URL: <http://lists.openfabrics.org/pipermail/ofw/attachments/20100502/c540131b/attachment.obj>
More information about the ofw
mailing list