]> git.openfabrics.org - ~shefty/rdma-win.git/commitdiff
[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:08:32 +0000 (16:08 +0000)
committertzachid <tzachid@ad392aa1-c5ef-ae45-8dd8-e69d62a5ef86>
Wed, 15 Oct 2008 16:08:32 +0000 (16:08 +0000)
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

index 337a782135d853a6040c9a3b20777171bdab0742..cc62e0e6226a5f09a358cff92c8059499e230d37 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