From 516d43f82833dbf955d6bc7ac2608f2d58ce6498 Mon Sep 17 00:00:00 2001 From: tzachid Date: Wed, 15 Oct 2008 16:08:32 +0000 Subject: [PATCH] [al] Avoid a crash in an ASSERT during a WHQL test. (mlnx: 3308) git-svn-id: svn://openib.tc.cornell.edu/gen1@1653 ad392aa1-c5ef-ae45-8dd8-e69d62a5ef86 --- branches/WOF2-0/trunk/core/bus/kernel/bus_port_mgr.c | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/branches/WOF2-0/trunk/core/bus/kernel/bus_port_mgr.c b/branches/WOF2-0/trunk/core/bus/kernel/bus_port_mgr.c index 337a7821..cc62e0e6 100644 --- a/branches/WOF2-0/trunk/core/bus/kernel/bus_port_mgr.c +++ b/branches/WOF2-0/trunk/core/bus/kernel/bus_port_mgr.c @@ -1210,7 +1210,9 @@ port_mgr_port_remove( ("%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 ); -- 2.41.0