Skip to content

Commit ed35599

Browse files
authored
Merge pull request #9607 from devreal/fix-osc-rdma-alloc-zero
osc/rdma: Make sure the rank_array is initialized
2 parents da5f891 + 3c0ec47 commit ed35599

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)