[openib-general] [PATCH] OpenSM/osm_lid_mgr.c::__osm_lid_mgr_set_remote_pi_state_to_init: Handle NULL p_rem_physp

Hal Rosenstock halr at voltaire.com
Mon May 29 06:02:45 PDT 2006


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 <Don.Albert at Bull.com>
on OFED 1.0 RC5.

Signed-off-by: Hal Rosenstock <halr at voltaire.com>

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 ))
   {






More information about the general mailing list