From edf9e8ba8f6d511a424780da38a02902e0e5fa80 Mon Sep 17 00:00:00 2001 From: Howard Pritchard Date: Wed, 18 Mar 2015 11:02:01 -0600 Subject: [PATCH] mtl/psm: coverity fixes Fix CIDS 1270176 - 1270179 Signed-off-by: Howard Pritchard --- ompi/mca/mtl/psm/mtl_psm.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/ompi/mca/mtl/psm/mtl_psm.c b/ompi/mca/mtl/psm/mtl_psm.c index b179a1ba57..004cbe1ea3 100644 --- a/ompi/mca/mtl/psm/mtl_psm.c +++ b/ompi/mca/mtl/psm/mtl_psm.c @@ -298,7 +298,8 @@ ompi_mtl_psm_add_procs(struct mca_mtl_base_module_t *mtl, OPAL_MODEX_RECV(rc, &mca_mtl_psm_component.super.mtl_version, &procs[i]->super, (void**)&epid, &size); if (rc != OMPI_SUCCESS || size != sizeof(psm_epid_t)) { - return OMPI_ERROR; + rc = OMPI_ERROR; + goto bail; } epids_in[i] = *epid; mask_in[i] = 1;