From patchwork Wed Aug 17 18:39:48 2011 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Hal Rosenstock X-Patchwork-Id: 1074772 Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by demeter1.kernel.org (8.14.4/8.14.4) with ESMTP id p7HIe1jE022190 for ; Wed, 17 Aug 2011 18:40:01 GMT Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1752613Ab1HQSkA (ORCPT ); Wed, 17 Aug 2011 14:40:00 -0400 Received: from mail-vx0-f174.google.com ([209.85.220.174]:49116 "EHLO mail-vx0-f174.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1752386Ab1HQSj7 (ORCPT ); Wed, 17 Aug 2011 14:39:59 -0400 Received: by vxi9 with SMTP id 9so1104778vxi.19 for ; Wed, 17 Aug 2011 11:39:58 -0700 (PDT) Received: by 10.52.176.166 with SMTP id cj6mr1454568vdc.155.1313606398571; Wed, 17 Aug 2011 11:39:58 -0700 (PDT) Received: from [192.168.1.104] (c-71-192-10-85.hsd1.ma.comcast.net [71.192.10.85]) by mx.google.com with ESMTPS id m1sm899701vcw.39.2011.08.17.11.39.55 (version=SSLv3 cipher=OTHER); Wed, 17 Aug 2011 11:39:56 -0700 (PDT) Message-ID: <4E4C0AF4.6000400@dev.mellanox.co.il> Date: Wed, 17 Aug 2011 14:39:48 -0400 From: Hal Rosenstock User-Agent: Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:1.9.2.18) Gecko/20110616 Thunderbird/3.1.11 MIME-Version: 1.0 To: Alex Netes CC: "linux-rdma@vger.kernel.org" Subject: [PATCH 1/3] opensm/osm_sa_portinfo_record.c: In pir_rcv_new_pir, fix switch port 0 physp Sender: linux-rdma-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-rdma@vger.kernel.org X-Greylist: IP, sender and recipient auto-whitelisted, not delayed by milter-greylist-4.2.6 (demeter1.kernel.org [140.211.167.41]); Wed, 17 Aug 2011 18:40:02 +0000 (UTC) use requested rather than requesting port Found and fixed by Daniel Klein Signed-off-by: Hal Rosenstock --- opensm/osm_sa_portinfo_record.c | 2 +- 1 files changed, 1 insertions(+), 1 deletions(-) diff --git a/opensm/osm_sa_portinfo_record.c b/opensm/osm_sa_portinfo_record.c index e8631a1..6a2a520 100644 --- a/opensm/osm_sa_portinfo_record.c +++ b/opensm/osm_sa_portinfo_record.c @@ -109,7 +109,7 @@ static ib_api_status_t pir_rcv_new_pir(IN osm_sa_t * sa, /* Does requested port have an extended link speed active ? */ if (osm_node_get_type(p_physp->p_node) == IB_NODE_TYPE_SWITCH) { - p_physp0 = osm_node_get_physp_ptr(p_ctxt->p_req_physp->p_node, 0); + p_physp0 = osm_node_get_physp_ptr(p_physp->p_node, 0); p_pi = &p_physp0->port_info; } else p_pi = (ib_port_info_t *) &p_physp->port_info;