There may not be an hca object attached to cm object when freeing during cleanup.
Signed-off-by: Arlin Davis <arlin.r.da...@intel.com> --- dapl/openib_scm/cm.c | 3 ++- 1 files changed, 2 insertions(+), 1 deletions(-) diff --git a/dapl/openib_scm/cm.c b/dapl/openib_scm/cm.c index 975ffd5..ce0d961 100644 --- a/dapl/openib_scm/cm.c +++ b/dapl/openib_scm/cm.c @@ -322,7 +322,8 @@ static int dapl_select(struct dapl_fd_set *set) static void dapli_cm_thread_signal(dp_ib_cm_handle_t cm_ptr) { - send(cm_ptr->hca->ib_trans.scm[1], "w", sizeof "w", 0); + if (cm_ptr->hca) + send(cm_ptr->hca->ib_trans.scm[1], "w", sizeof "w", 0); } static void dapli_cm_free(dp_ib_cm_handle_t cm_ptr) -- 1.5.2.5 -- To unsubscribe from this list: send the line "unsubscribe linux-rdma" in the body of a message to majord...@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html