diff --git a/ompi/mca/osc/sm/osc_sm_active_target.c b/ompi/mca/osc/sm/osc_sm_active_target.c index 672850be99..fdd1117eaf 100644 --- a/ompi/mca/osc/sm/osc_sm_active_target.c +++ b/ompi/mca/osc/sm/osc_sm_active_target.c @@ -315,6 +315,8 @@ ompi_osc_sm_test(struct ompi_win_t *win, OBJ_RELEASE(module->post_group); module->post_group = NULL; *flag = 1; + } else { + *flag = 0; } OPAL_THREAD_UNLOCK(&module->lock);