From 84565a2dc7b68aa640b4ce4bd3304f93afc2f2e4 Mon Sep 17 00:00:00 2001 From: Ralph Castain Date: Tue, 21 Mar 2017 15:15:32 -0700 Subject: [PATCH] Ensure we properly exit with error if we cannot map the job Signed-off-by: Ralph Castain (cherry picked from commit f8e1e3bed3866e9e71d0d782c396bacbe681c4bb) --- orte/mca/odls/base/odls_base_default_fns.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/orte/mca/odls/base/odls_base_default_fns.c b/orte/mca/odls/base/odls_base_default_fns.c index 4f6ad2c95ca..c2874c89f47 100644 --- a/orte/mca/odls/base/odls_base_default_fns.c +++ b/orte/mca/odls/base/odls_base_default_fns.c @@ -422,7 +422,7 @@ int orte_odls_base_default_construct_child_list(opal_buffer_t *buffer, /* create the map - will already have been done for the novm case */ if (ORTE_SUCCESS != (rc = orte_rmaps_base_map_job(jdata))) { ORTE_ERROR_LOG(rc); - return rc; + goto REPORT_ERROR; } /* find our local procs */ for (n=0; n < jdata->map->nodes->size; n++) { @@ -457,7 +457,7 @@ int orte_odls_base_default_construct_child_list(opal_buffer_t *buffer, /* compute and save bindings of local children */ if (ORTE_SUCCESS != (rc = orte_rmaps_base_compute_bindings(jdata))) { ORTE_ERROR_LOG(rc); - return rc; + goto REPORT_ERROR; } }