[IBAL] This patch adds a missing reference taken on a QP when delaying the QP modific...
authorleonidk <leonidk@ad392aa1-c5ef-ae45-8dd8-e69d62a5ef86>
Tue, 1 Jul 2008 18:27:55 +0000 (18:27 +0000)
committerleonidk <leonidk@ad392aa1-c5ef-ae45-8dd8-e69d62a5ef86>
Tue, 1 Jul 2008 18:27:55 +0000 (18:27 +0000)
Signed-off-by: Fab Tillier <ftillier@microsoft.com>
git-svn-id: svn://openib.tc.cornell.edu/gen1/trunk@1317 ad392aa1-c5ef-ae45-8dd8-e69d62a5ef86

core/al/kernel/al_ndi_cm.c

index 964f003..38a6161 100644 (file)
@@ -708,6 +708,7 @@ __ndi_proc_dreq_async(
        //p_async_dreq->cm.h_qp->p_irp_que->state = NDI_CM_IDLE;        \r
 \r
 exit:\r
+    deref_al_obj( &p_async_dreq->cm.h_qp->obj );\r
        cl_free( p_async_dreq );\r
        AL_EXIT( AL_DBG_NDI );\r
 }\r
@@ -734,6 +735,7 @@ __ndi_proc_dreq(
                goto exit;\r
        }\r
 \r
+    ref_al_obj( &p_cm->h_qp->obj );\r
        p_async_dreq->cm = *p_cm;\r
        p_async_dreq->item.pfn_callback = __ndi_proc_dreq_async;\r
 \r