Skip to content

Commit b50d568

Browse files
authored
Merge pull request #7191 from gvallee/returncode_check
Add the missing code to check a return code
2 parents f828990 + de6f130 commit b50d568

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

opal/mca/shmem/mmap/shmem_mmap_component.c

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -14,6 +14,7 @@
1414
* Copyright (c) 2010-2015 Los Alamos National Security, LLC. All rights
1515
* reserved.
1616
* Copyright (c) 2016 Intel, Inc. All rights reserved.
17+
* Copyright (c) 2019 Sylabs, Inc. All rights reserved.
1718
* $COPYRIGHT$
1819
*
1920
* Additional copyrights may follow
@@ -110,6 +111,9 @@ mmap_register(void)
110111
OPAL_INFO_LVL_3,
111112
MCA_BASE_VAR_SCOPE_ALL_EQ,
112113
&mca_shmem_mmap_component.priority);
114+
if (0 > ret) {
115+
return ret;
116+
}
113117

114118
/*
115119
* Do we want the "warning: your mmap file is on NFS!" message? Per a

0 commit comments

Comments
 (0)