[IBAL] Don't leak duplicate MAD responses.
authorftillier <ftillier@ad392aa1-c5ef-ae45-8dd8-e69d62a5ef86>
Tue, 25 Jul 2006 01:09:11 +0000 (01:09 +0000)
committerftillier <ftillier@ad392aa1-c5ef-ae45-8dd8-e69d62a5ef86>
Tue, 25 Jul 2006 01:09:11 +0000 (01:09 +0000)
git-svn-id: svn://openib.tc.cornell.edu/gen1/trunk@429 ad392aa1-c5ef-ae45-8dd8-e69d62a5ef86

core/al/al_mad.c

index f06f091..69ef0b7 100644 (file)
@@ -2260,6 +2260,9 @@ __process_recv_resp(
                /* The send is currently active.  Do not report it. */\r
                AL_PRINT( TRACE_LEVEL_INFORMATION, AL_DBG_MAD_SVC,\r
                        ("resp send active TID:0x%I64x\n", p_mad_hdr->trans_id) );\r
+               /* Handle a duplicate receive happening before the send completion is processed. */\r
+               if( h_send->p_resp_mad )\r
+                       ib_put_mad( h_send->p_resp_mad );\r
                h_send->p_resp_mad = p_mad_element;\r
                cl_spinlock_release( &h_mad_svc->obj.lock );\r
        }\r