[openib-general] [PATCH][MINOR] OpenSM/osm_switch.c: In osm_switch_init, handle osm_fwd_tbl_init failures

Hal Rosenstock halr at voltaire.com
Thu Jul 6 12:54:52 PDT 2006


OpenSM/osm_switch.c: In osm_switch_init, handle osm_fwd_tbl_init
failures

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

Index: opensm/osm_switch.c
===================================================================
--- opensm/osm_switch.c	(revision 8435)
+++ opensm/osm_switch.c	(working copy)
@@ -103,6 +103,8 @@ osm_switch_init(
     goto Exit;
 
   status = osm_fwd_tbl_init( &p_sw->fwd_tbl, p_si );
+  if( status != IB_SUCCESS )
+    goto Exit;
 
   p_sw->p_prof = malloc( sizeof(*p_sw->p_prof) * num_ports );
   if( p_sw->p_prof == NULL )







More information about the general mailing list