From patchwork Thu Dec 3 16:12:04 2009 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Hal Rosenstock X-Patchwork-Id: 64570 Received: from vger.kernel.org (vger.kernel.org [209.132.176.167]) by demeter.kernel.org (8.14.2/8.14.2) with ESMTP id nB3GF3o6025872 for ; Thu, 3 Dec 2009 16:15:03 GMT Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1751465AbZLCQOz (ORCPT ); Thu, 3 Dec 2009 11:14:55 -0500 Received: (majordomo@vger.kernel.org) by vger.kernel.org id S1751575AbZLCQOz (ORCPT ); Thu, 3 Dec 2009 11:14:55 -0500 Received: from qmta13.westchester.pa.mail.comcast.net ([76.96.59.243]:58415 "EHLO QMTA13.westchester.pa.mail.comcast.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751465AbZLCQOz (ORCPT ); Thu, 3 Dec 2009 11:14:55 -0500 Received: from OMTA04.westchester.pa.mail.comcast.net ([76.96.62.35]) by QMTA13.westchester.pa.mail.comcast.net with comcast id Cc4M1d0050ldTLk5DgF0tu; Thu, 03 Dec 2009 16:15:00 +0000 Received: from hal.comcast.net ([75.69.247.31]) by OMTA04.westchester.pa.mail.comcast.net with comcast id CgEz1d00B0hNrtn3QgEzU9; Thu, 03 Dec 2009 16:15:00 +0000 Received: from hal.comcast.net (localhost.localdomain [127.0.0.1]) by hal.comcast.net (8.14.3/8.14.3) with ESMTP id nB3GCITN002983; Thu, 3 Dec 2009 11:12:23 -0500 Received: (from hnrose@localhost) by hal.comcast.net (8.14.3/8.14.3/Submit) id nB3GC4xu002951; Thu, 3 Dec 2009 11:12:04 -0500 Date: Thu, 3 Dec 2009 11:12:04 -0500 From: Hal Rosenstock To: sashak@voltaire.com Cc: linux-rdma@vger.kernel.org Subject: [PATCH] opensm/osm_sm_mad_ctrl.c: Add missing call to return mad to mad pool Message-ID: <20091203161203.GA2947@comcast.net> MIME-Version: 1.0 Content-Disposition: inline User-Agent: Mutt/1.5.19 (2009-01-05) Sender: linux-rdma-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-rdma@vger.kernel.org diff --git a/opensm/opensm/osm_sm_mad_ctrl.c b/opensm/opensm/osm_sm_mad_ctrl.c index 0ccc327..a58b3f4 100644 --- a/opensm/opensm/osm_sm_mad_ctrl.c +++ b/opensm/opensm/osm_sm_mad_ctrl.c @@ -257,6 +257,7 @@ static void sm_mad_ctrl_process_get_resp(IN osm_sm_mad_ctrl_t * p_ctrl, "Unsupported attribute 0x%X\n", cl_ntoh16(p_smp->attr_id)); osm_dump_dr_smp(p_ctrl->p_log, p_smp, OSM_LOG_ERROR); + osm_mad_pool_put(p_ctrl->p_mad_pool, p_madw); goto Exit; }