[ofw] Patch: Avoid a crash in an ASSERT during a WHQL test.

Tzachi Dar tzachid at mellanox.co.il
Sun Oct 12 06:10:18 PDT 2008


Index: Q:/projinf4/trunk/core/bus/kernel/bus_port_mgr.c
===================================================================
--- Q:/projinf4/trunk/core/bus/kernel/bus_port_mgr.c (revision 3307)
+++ Q:/projinf4/trunk/core/bus/kernel/bus_port_mgr.c (revision 3308)
@@ -1219,7 +1219,9 @@
       ("%s NULL h_ca? p_ext %p\n", p_bfi->whoami, p_ext ) );
   return;
  }
- CL_ASSERT(p_bfi == p_ext->p_parent_ext->bus_filter);
+
+ // Don't crash if p_ext->p_parent_ext is NULL
+ CL_ASSERT((p_ext->p_parent_ext == NULL) || p_bfi ==
p_ext->p_parent_ext->bus_filter);
  
  cl_mutex_acquire( &gp_port_mgr->pdo_mutex );
  CL_ASSERT( p_ext->h_ca );

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


More information about the ofw mailing list