Skip to content

Commit de6f130

Browse files
committed
Add the missing code to check a return code
Signed-off-by: Geoffroy Vallee <geoffroy.vallee@gmail.com>
1 parent ebf0035 commit de6f130

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)