Skip to content

Commit 3c0ec47

Browse files
committed
osc/rdma: Make sure the rank_array is initialized
A bug introduced in #7985 where a calloc call was replaced with an allocation that does not initialize the memory. Fixes #9590 Signed-off-by: Joseph Schuchart <schuchart@icl.utk.edu>
1 parent da5f891 commit 3c0ec47

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

ompi/mca/osc/rdma/osc_rdma_component.c

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -491,6 +491,7 @@ static int allocate_state_single (ompi_osc_rdma_module_t *module, void **base, s
491491
if (OPAL_UNLIKELY(NULL == module->rank_array)) {
492492
return OMPI_ERR_OUT_OF_RESOURCE;
493493
}
494+
memset(module->rank_array, 0, total_size);
494495

495496
/* Note, the extra module->region_size space added after local_rank_array_size
496497
* is unused but is there to match what happens in allocte_state_shared()

0 commit comments

Comments
 (0)