Skip to content

Commit 70c2148

Browse files
committed
btl/sm: mca_btl_sm_sendi: do not set *descriptor when descriptor is NULL
(cherry picked from commit open-mpi/ompi@d5af5d1)
1 parent 2c008de commit 70c2148

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

opal/mca/btl/sm/btl_sm.c

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -899,7 +899,9 @@ int mca_btl_sm_sendi( struct mca_btl_base_module_t* btl,
899899
/* note that frag==NULL is equivalent to rc returning an error code */
900900
MCA_BTL_SM_FRAG_ALLOC_EAGER(frag);
901901
if( OPAL_UNLIKELY(NULL == frag) ) {
902-
*descriptor = NULL;
902+
if (NULL != descriptor) {
903+
*descriptor = NULL;
904+
}
903905
return OPAL_ERR_OUT_OF_RESOURCE;
904906
}
905907

0 commit comments

Comments
 (0)