]> git.openfabrics.org - ~ardavis/dapl.git/commitdiff
scm: EP reference in CR should be cleared during ep_destroy
authorArlin Davis <arlin.r.davis@intel.com>
Fri, 26 Jun 2009 21:28:30 +0000 (14:28 -0700)
committerArlin Davis <arlin.r.davis@intel.com>
Fri, 26 Jun 2009 21:28:30 +0000 (14:28 -0700)
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 <arlin.r.davis@intel.com>
dapl/openib_scm/dapl_ib_qp.c

index 7c3c280d58967770bf42e3edbdd9a87bef07c932..f943ff8d7c764a86537a70d73b17a41b37d8e015 100644 (file)
@@ -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);
                }