Skip to content

Commit b410510

Browse files
Sergey Oblomovyosefe
Sergey Oblomov
authored andcommitted
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]> (cherry picked from commit 2b8595d)
1 parent 3d69b9d commit b410510

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

oshmem/mca/sshmem/base/sshmem_base_wrappers.c

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -85,5 +85,10 @@ shmem_ds_reset(map_segment_t *ds_buf)
8585
ds_buf->super.va_end = 0;
8686
ds_buf->seg_size = 0;
8787
ds_buf->type = MAP_SEGMENT_UNKNOWN;
88+
ds_buf->mkeys_cache = NULL;
89+
ds_buf->mkeys = NULL;
90+
ds_buf->alloc_hints = 0;
91+
ds_buf->context = NULL;
92+
ds_buf->allocator = NULL;
8893
}
8994

0 commit comments

Comments
 (0)