OpenSM/osm_sa_mcmember_record.c Return 0 when no used MLID table can be
allocated

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

Index: opensm/osm_sa_mcmember_record.c
===================================================================
--- opensm/osm_sa_mcmember_record.c     (revision 7441)
+++ opensm/osm_sa_mcmember_record.c     (working copy)
@@ -326,6 +326,8 @@ __get_new_mlid(
   /* track all used mlids in the array (by mlid index) */
   used_mlids_array =
     (uint8_t *)cl_zalloc(sizeof(uint8_t)*max_num_mlids);
+  if (!used_mlids_array)
+    return 0;
  
   /* scan all available multicast groups in the DB and fill in the table */
   while( p_mgrp != (osm_mgrp_t*)cl_qmap_end( &p_subn->mgrp_mlid_tbl ) )



_______________________________________________
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