From patchwork Fri Oct 16 13:40:36 2009 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Line.Holen@Sun.COM X-Patchwork-Id: 54262 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 n9GDsRip021362 for ; Fri, 16 Oct 2009 13:54:27 GMT Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S932368AbZJPNrs (ORCPT ); Fri, 16 Oct 2009 09:47:48 -0400 Received: (majordomo@vger.kernel.org) by vger.kernel.org id S932369AbZJPNrs (ORCPT ); Fri, 16 Oct 2009 09:47:48 -0400 Received: from gmp-eb-inf-1.sun.com ([192.18.6.21]:57725 "EHLO gmp-eb-inf-1.sun.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1759203AbZJPNrr (ORCPT ); Fri, 16 Oct 2009 09:47:47 -0400 X-Greylist: delayed 374 seconds by postgrey-1.27 at vger.kernel.org; Fri, 16 Oct 2009 09:47:47 EDT Received: from fe-emea-10.sun.com (gmp-eb-lb-1-fe1.eu.sun.com [192.18.6.7] (may be forged)) by gmp-eb-inf-1.sun.com (8.13.7+Sun/8.12.9) with ESMTP id n9GDemBu023279 for ; Fri, 16 Oct 2009 13:40:49 GMT MIME-version: 1.0 Content-transfer-encoding: 7BIT Content-type: text/plain; CHARSET=US-ASCII Received: from conversion-daemon.fe-emea-10.sun.com by fe-emea-10.sun.com (Sun Java(tm) System Messaging Server 7u2-7.04 64bit (built Jul 2 2009)) id <0KRL00G00YSAO100@fe-emea-10.sun.com> for linux-rdma@vger.kernel.org; Fri, 16 Oct 2009 14:40:39 +0100 (BST) Received: from [129.159.138.141] ([unknown] [129.159.138.141]) by fe-emea-10.sun.com (Sun Java(tm) System Messaging Server 7u2-7.04 64bit (built Jul 2 2009)) with ESMTPSA id <0KRM0054H0NOLBB0@fe-emea-10.sun.com>; Fri, 16 Oct 2009 14:40:36 +0100 (BST) Date: Fri, 16 Oct 2009 15:40:36 +0200 From: Line.Holen@Sun.COM Subject: [PATCHv2] osm_ucast_ftree.c missing reset of ca_ports To: sashak@voltaire.com Cc: linux-rdma@vger.kernel.org Message-id: <4AD877D4.1070706@Sun.COM> User-Agent: Thunderbird 2.0.0.21 (X11/20090311) 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_ucast_ftree.c b/opensm/opensm/osm_ucast_ftree.c index 885c834..5b403f7 100644 --- a/opensm/opensm/osm_ucast_ftree.c +++ b/opensm/opensm/osm_ucast_ftree.c @@ -1002,6 +1002,7 @@ static void fabric_clear(ftree_fabric_t * p_ftree) p_ftree->leaf_switches_num = 0; p_ftree->cn_num = 0; + p_ftree->ca_ports = 0; p_ftree->leaf_switch_rank = 0; p_ftree->max_switch_rank = 0; p_ftree->max_cn_per_leaf = 0;