[ofw] [PATCH 06/12] dapl-2.0: ucm: fix error path during accept_usr reply failure

Davis, Arlin R arlin.r.davis at intel.com
Wed May 19 11:11:30 PDT 2010


if accept_usr fails when sending reply the EP was
being linked to CM instead of properly unlinked.

Signed-off-by: Arlin Davis <arlin.r.davis at intel.com>
---
 dapl/openib_ucm/cm.c |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)

diff --git a/dapl/openib_ucm/cm.c b/dapl/openib_ucm/cm.c
index 2cab529..85c8b4b 100644
--- a/dapl/openib_ucm/cm.c
+++ b/dapl/openib_ucm/cm.c
@@ -1454,7 +1454,7 @@ dapli_accept_usr(DAPL_EP *ep, DAPL_CR *cr, DAT_COUNT p_size, DAT_PVOID p_data)
 	dapl_os_unlock(&cm->lock);
 
 	if (ucm_reply(cm)) {
-		dapl_ep_link_cm(ep, cm);
+		dapl_ep_unlink_cm(ep, cm);
 		goto bail;
 	}
 	dapl_dbg_log(DAPL_DBG_TYPE_CM, " PASSIVE: accepted!\n");
-- 
1.5.2.5




More information about the ofw mailing list