diff mbox

opensm/osm_mcast_mgr.c: fix return value on alloc_mfts() failures

Message ID 20091111183317.GX7192@me (mailing list archive)
State Not Applicable, archived
Headers show

Commit Message

Sasha Khapyorsky Nov. 11, 2009, 6:33 p.m. UTC
None
diff mbox

Patch

diff --git a/opensm/opensm/osm_mcast_mgr.c b/opensm/opensm/osm_mcast_mgr.c
index 105e905..7bd7add 100644
--- a/opensm/opensm/osm_mcast_mgr.c
+++ b/opensm/opensm/osm_mcast_mgr.c
@@ -1066,6 +1066,7 @@  int osm_mcast_mgr_process(osm_sm_t * sm)
 	if (alloc_mfts(sm)) {
 		OSM_LOG(sm->p_log, OSM_LOG_ERROR,
 			"ERR 0A07: alloc_mfts failed\n");
+		ret = -1;
 		goto exit;
 	}
 
@@ -1110,6 +1111,7 @@  int osm_mcast_mgr_process_mgroups(osm_sm_t * sm)
 	if (alloc_mfts(sm)) {
 		OSM_LOG(sm->p_log, OSM_LOG_ERROR,
 			"ERR 0A09: alloc_mfts failed\n");
+		ret = -1;
 		goto exit;
 	}