When alloc_mfts() fails and multicast routing calculation interrupted
return -1 value to a caller.

Signed-off-by: Sasha Khapyorsky <[email protected]>
---
 opensm/opensm/osm_mcast_mgr.c |    2 ++
 1 files changed, 2 insertions(+), 0 deletions(-)

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;
        }
 
-- 
1.6.5.2

--
To unsubscribe from this list: send the line "unsubscribe linux-rdma" in
the body of a message to [email protected]
More majordomo info at  http://vger.kernel.org/majordomo-info.html

Reply via email to