From b62162d35bb2db93ec0b3d564d55ee42a7ee51a3 Mon Sep 17 00:00:00 2001 From: ftillier Date: Tue, 25 Jul 2006 01:09:11 +0000 Subject: [PATCH] [IBAL] Don't leak duplicate MAD responses. git-svn-id: svn://openib.tc.cornell.edu/gen1@429 ad392aa1-c5ef-ae45-8dd8-e69d62a5ef86 --- trunk/core/al/al_mad.c | 3 +++ 1 file changed, 3 insertions(+) diff --git a/trunk/core/al/al_mad.c b/trunk/core/al/al_mad.c index f06f0912..69ef0b77 100644 --- a/trunk/core/al/al_mad.c +++ b/trunk/core/al/al_mad.c @@ -2260,6 +2260,9 @@ __process_recv_resp( /* The send is currently active. Do not report it. */ AL_PRINT( TRACE_LEVEL_INFORMATION, AL_DBG_MAD_SVC, ("resp send active TID:0x%I64x\n", p_mad_hdr->trans_id) ); + /* Handle a duplicate receive happening before the send completion is processed. */ + if( h_send->p_resp_mad ) + ib_put_mad( h_send->p_resp_mad ); h_send->p_resp_mad = p_mad_element; cl_spinlock_release( &h_mad_svc->obj.lock ); } -- 2.41.0