This commit fixes trac:729. Initialize pointer to registration to NULL. Otherwise
it may contain garbage and we will try to unregister it later in btl_free(). This commit was SVN r13054. The following Trac tickets were found above: Ticket 729 --> https://svn.open-mpi.org/trac/ompi/ticket/729
Этот коммит содержится в:
родитель
d3ac56272a
Коммит
624f139bd8
@ -48,7 +48,8 @@ static void mca_btl_gm_frag_max_constructor(mca_btl_gm_frag_t* frag)
|
||||
static void mca_btl_gm_frag_user_constructor(mca_btl_gm_frag_t* frag)
|
||||
{
|
||||
frag->hdr = NULL;
|
||||
frag->size = 0;
|
||||
frag->size = 0;
|
||||
frag->registration = NULL;
|
||||
MCA_BTL_GM_FRAG_COMMON_CONSTRUCTOR(frag);
|
||||
}
|
||||
|
||||
|
@ -113,6 +113,7 @@ static void mca_btl_mvapi_send_frag_frag_constructor(mca_btl_mvapi_frag_t* frag)
|
||||
|
||||
frag->size = 0;
|
||||
frag->type = MCA_BTL_MVAPI_FRAG_FRAG;
|
||||
frag->registration = NULL;
|
||||
mca_btl_mvapi_send_frag_common_constructor(frag);
|
||||
}
|
||||
|
||||
|
@ -110,6 +110,7 @@ static void mca_btl_openib_send_frag_frag_constructor(mca_btl_openib_frag_t* fra
|
||||
{
|
||||
frag->size = 0;
|
||||
frag->type = MCA_BTL_OPENIB_FRAG_FRAG;
|
||||
frag->registration = NULL;
|
||||
mca_btl_openib_send_frag_common_constructor(frag);
|
||||
}
|
||||
|
||||
|
@ -28,6 +28,7 @@ static void mca_btl_template_frag_max_constructor(mca_btl_template_frag_t* frag)
|
||||
static void mca_btl_template_frag_user_constructor(mca_btl_template_frag_t* frag)
|
||||
{
|
||||
frag->size = 0;
|
||||
frag->registration = NULL;
|
||||
mca_btl_template_frag_common_constructor(frag);
|
||||
}
|
||||
|
||||
|
@ -69,7 +69,8 @@ static void mca_btl_udapl_frag_user_constructor(mca_btl_udapl_frag_t* frag)
|
||||
frag->segment.seg_len = 0;
|
||||
frag->segment.seg_addr.pval = NULL;
|
||||
frag->ftr = NULL;
|
||||
frag->size = 0;
|
||||
frag->size = 0;
|
||||
frag->registration = NULL;
|
||||
}
|
||||
|
||||
static void mca_btl_udapl_frag_common_destructor(mca_btl_udapl_frag_t* frag)
|
||||
|
Загрузка…
x
Ссылка в новой задаче
Block a user