From 17d5e1692db4ae1eb09aa919d5607f22851d7ec5 Mon Sep 17 00:00:00 2001 From: Arlin Davis Date: Fri, 26 Jun 2009 14:28:30 -0700 Subject: [PATCH] scm: EP reference in CR should be cleared during ep_destroy The EP reference in the CR should be set to null during the EP free call to insure no further reference back to a mem freed EP. Signed-off-by: Arlin Davis --- dapl/openib_scm/dapl_ib_qp.c | 1 + 1 file changed, 1 insertion(+) diff --git a/dapl/openib_scm/dapl_ib_qp.c b/dapl/openib_scm/dapl_ib_qp.c index 7c3c280..f943ff8 100644 --- a/dapl/openib_scm/dapl_ib_qp.c +++ b/dapl/openib_scm/dapl_ib_qp.c @@ -221,6 +221,7 @@ DAT_RETURN dapls_ib_qp_free(IN DAPL_IA * ia_ptr, IN DAPL_EP * ep_ptr) " qp_free CR: ep %p cr %p\n", ep_ptr, cr); dapli_socket_disconnect(cr); dapl_os_lock(&cr->lock); + cr->ep = NULL; cr->state = SCM_DESTROY; dapl_os_unlock(&cr->lock); } -- 2.41.0