[al] Avoid a crash in an ASSERT during a WHQL test. (mlnx: 3308)
authortzachid <tzachid@ad392aa1-c5ef-ae45-8dd8-e69d62a5ef86>
Wed, 15 Oct 2008 16:09:52 +0000 (16:09 +0000)
committertzachid <tzachid@ad392aa1-c5ef-ae45-8dd8-e69d62a5ef86>
Wed, 15 Oct 2008 16:09:52 +0000 (16:09 +0000)
git-svn-id: svn://openib.tc.cornell.edu/gen1/trunk@1654 ad392aa1-c5ef-ae45-8dd8-e69d62a5ef86

core/bus/kernel/bus_port_mgr.c

index 337a782..cc62e0e 100644 (file)
@@ -1210,7 +1210,9 @@ port_mgr_port_remove(
                                                ("%s NULL h_ca? p_ext %p\n", p_bfi->whoami, p_ext ) );\r
                return;\r
        }\r
-       CL_ASSERT(p_bfi == p_ext->p_parent_ext->bus_filter);\r
+\r
+       // Don't crash if p_ext->p_parent_ext is NULL\r
+       CL_ASSERT((p_ext->p_parent_ext == NULL) || p_bfi == p_ext->p_parent_ext->bus_filter);\r
        \r
        cl_mutex_acquire( &gp_port_mgr->pdo_mutex );\r
        CL_ASSERT( p_ext->h_ca );\r