OpenSM/osm_lid_mgr.c::__osm_lid_mgr_set_remote_pi_state_to_init: Handle
NULL p_rem_physp

In osm_lid_mgr.c::__osm_lid_mgr_set_remote_pi_state_to_init, p_rem_physp
can validly be NULL when the remote SMA is not responding (but physical
link is up). This has been observed by Don Albert <[EMAIL PROTECTED]>
on OFED 1.0 RC5.

Signed-off-by: Hal Rosenstock <[EMAIL PROTECTED]>

Index: opensm/osm_lid_mgr.c
===================================================================
--- opensm/osm_lid_mgr.c        (revision 7535)
+++ opensm/osm_lid_mgr.c        (working copy)
@@ -931,7 +931,8 @@ __osm_lid_mgr_set_remote_pi_state_to_ini
   ib_port_info_t *p_pi;
   osm_physp_t *p_rem_physp = osm_physp_get_remote(p_physp);
 
-  CL_ASSERT(p_rem_physp);
+  if ( p_rem_physp == NULL )
+    return;
 
   if (osm_physp_is_valid( p_rem_physp ))
   {



_______________________________________________
openib-general mailing list
[email protected]
http://openib.org/mailman/listinfo/openib-general

To unsubscribe, please visit http://openib.org/mailman/listinfo/openib-general

Reply via email to