Skip to content

Commit 9bf5107

Browse files
author
Sergey Oblomov
committed
SHMEM/BASE: added missing initializers
- there were missing initializers in shmem segment which caused incorrect memory access - added missing initializers Signed-off-by: Sergey Oblomov <[email protected]>
1 parent ee324be commit 9bf5107

File tree

1 file changed

+6
-2
lines changed

1 file changed

+6
-2
lines changed

oshmem/mca/sshmem/base/sshmem_base_wrappers.c

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -76,14 +76,18 @@ char * oshmem_get_unique_file_name(uint64_t pe)
7676
}
7777

7878

79-
void
80-
shmem_ds_reset(map_segment_t *ds_buf)
79+
void shmem_ds_reset(map_segment_t *ds_buf)
8180
{
8281
MAP_SEGMENT_RESET_FLAGS(ds_buf);
8382
ds_buf->seg_id = MAP_SEGMENT_SHM_INVALID;
8483
ds_buf->super.va_base = 0;
8584
ds_buf->super.va_end = 0;
8685
ds_buf->seg_size = 0;
8786
ds_buf->type = MAP_SEGMENT_UNKNOWN;
87+
ds_buf->mkeys_cache = NULL;
88+
ds_buf->mkeys = NULL;
89+
ds_buf->alloc_hints = 0;
90+
ds_buf->context = NULL;
91+
ds_buf->allocator = NULL;
8892
}
8993

0 commit comments

Comments
 (0)