From patchwork Wed Nov 11 18:33:17 2009 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Sasha Khapyorsky X-Patchwork-Id: 59404 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 nABIVISk019087 for ; Wed, 11 Nov 2009 18:31:18 GMT Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1757862AbZKKSa7 (ORCPT ); Wed, 11 Nov 2009 13:30:59 -0500 Received: (majordomo@vger.kernel.org) by vger.kernel.org id S1758352AbZKKSa7 (ORCPT ); Wed, 11 Nov 2009 13:30:59 -0500 Received: from mail-fx0-f221.google.com ([209.85.220.221]:60002 "EHLO mail-fx0-f221.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1758361AbZKKSa6 (ORCPT ); Wed, 11 Nov 2009 13:30:58 -0500 Received: by fxm21 with SMTP id 21so1324807fxm.21 for ; Wed, 11 Nov 2009 10:31:02 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:received:received:sender:received:date:from:to :cc:subject:message-id:mime-version:content-type:content-disposition :user-agent; bh=+dunq0wq57CUSPdvxW1aRQUterRlgcDqzKkH2mhRGpA=; b=eBIKSiLL4qCahPyJ7u20wDxcwVyvVMRrmAZX2Q9ni9e+JayOzeaCte3y1zpSVgx1SM Mc2ggIKwXRldLGAmvBCfJeoIpcX7U6T71eIo2dqNwf5NNbYnpWG1GfqZQTp4qQtFiMki sGUILHq6qJIbYZJ6bMUKTo4E1KjMdNvDmB+IU= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=sender:date:from:to:cc:subject:message-id:mime-version:content-type :content-disposition:user-agent; b=DHgu1ru284kyfRRo5GMjR78QB0m2WPYvAMPz+5LPJACjOXsNmD1h/rSK7dJXLQ7Zt1 EA+ifeEqYJy1DqWFMw/RFtxkw2AGqiIotMpvx0h0SyE2Y6fwsodw860ULUsW02WwUZNU mA4/nHS8LzSFtXXRVk5+Wp+WwQk7vn5vdPW90= Received: by 10.103.205.12 with SMTP id h12mr754341muq.108.1257964262150; Wed, 11 Nov 2009 10:31:02 -0800 (PST) Received: from me.localdomain (85.64.35.106.dynamic.barak-online.net [85.64.35.106]) by mx.google.com with ESMTPS id 23sm408367mun.1.2009.11.11.10.31.01 (version=TLSv1/SSLv3 cipher=RC4-MD5); Wed, 11 Nov 2009 10:31:01 -0800 (PST) Received: by me.localdomain (Postfix, from userid 1000) id 783041209B; Wed, 11 Nov 2009 20:33:17 +0200 (IST) Date: Wed, 11 Nov 2009 20:33:17 +0200 From: Sasha Khapyorsky To: linux-rdma Cc: Hal Rosenstock Subject: [PATCH] opensm/osm_mcast_mgr.c: fix return value on alloc_mfts() failures Message-ID: <20091111183317.GX7192@me> MIME-Version: 1.0 Content-Disposition: inline User-Agent: Mutt/1.5.20 (2009-06-14) 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_mcast_mgr.c b/opensm/opensm/osm_mcast_mgr.c index 105e905..7bd7add 100644 --- a/opensm/opensm/osm_mcast_mgr.c +++ b/opensm/opensm/osm_mcast_mgr.c @@ -1066,6 +1066,7 @@ int osm_mcast_mgr_process(osm_sm_t * sm) if (alloc_mfts(sm)) { OSM_LOG(sm->p_log, OSM_LOG_ERROR, "ERR 0A07: alloc_mfts failed\n"); + ret = -1; goto exit; } @@ -1110,6 +1111,7 @@ int osm_mcast_mgr_process_mgroups(osm_sm_t * sm) if (alloc_mfts(sm)) { OSM_LOG(sm->p_log, OSM_LOG_ERROR, "ERR 0A09: alloc_mfts failed\n"); + ret = -1; goto exit; }