diff mbox

[1/3] opensm/osm_sa_portinfo_record.c: In pir_rcv_new_pir, fix switch port 0 physp

Message ID 4E4C0AF4.6000400@dev.mellanox.co.il (mailing list archive)
State New, archived
Headers show

Commit Message

Hal Rosenstock Aug. 17, 2011, 6:39 p.m. UTC
use requested rather than requesting port

Found and fixed by Daniel Klein <danielk@mellanox.co.il>

Signed-off-by: Hal Rosenstock <hal@mellanox.com>
---
 opensm/osm_sa_portinfo_record.c |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)

Comments

Alex Netes Aug. 31, 2011, 10:37 a.m. UTC | #1
Hi Hal,

On 14:39 Wed 17 Aug     , Hal Rosenstock wrote:
> 
> use requested rather than requesting port
> 
> Found and fixed by Daniel Klein <danielk@mellanox.co.il>
> 
> Signed-off-by: Hal Rosenstock <hal@mellanox.com>
> ---

Applied, thanks.
--
To unsubscribe from this list: send the line "unsubscribe linux-rdma" in
the body of a message to majordomo@vger.kernel.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html
diff mbox

Patch

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;