From de6f130b4a5b001ef85317fe3ebc2c8f8c8077e9 Mon Sep 17 00:00:00 2001 From: Geoffroy Vallee Date: Sun, 24 Nov 2019 11:04:10 -0500 Subject: [PATCH] Add the missing code to check a return code Signed-off-by: Geoffroy Vallee --- opal/mca/shmem/mmap/shmem_mmap_component.c | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/opal/mca/shmem/mmap/shmem_mmap_component.c b/opal/mca/shmem/mmap/shmem_mmap_component.c index acac7bb8f3..ee09b28771 100644 --- a/opal/mca/shmem/mmap/shmem_mmap_component.c +++ b/opal/mca/shmem/mmap/shmem_mmap_component.c @@ -14,6 +14,7 @@ * Copyright (c) 2010-2015 Los Alamos National Security, LLC. All rights * reserved. * Copyright (c) 2016 Intel, Inc. All rights reserved. + * Copyright (c) 2019 Sylabs, Inc. All rights reserved. * $COPYRIGHT$ * * Additional copyrights may follow @@ -110,6 +111,9 @@ mmap_register(void) OPAL_INFO_LVL_3, MCA_BASE_VAR_SCOPE_ALL_EQ, &mca_shmem_mmap_component.priority); + if (0 > ret) { + return ret; + } /* * Do we want the "warning: your mmap file is on NFS!" message? Per a