Skip to contentSkip to conversation

opensm: fixed segfault when enable qos on fabric with no switches

PATCH In review Alex Netes 2 participants 2 messages Apr 13, 2011 1 message not in the archive InfiniBand

lore
Share & tools
lore

Alex Netes

author
#0 lore raw

PATCH 1/1 opensm: fixed segfault when enable qos on fabric with no switches

---
 opensm/osm_qos.c |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)
opensm/osm_qos.c +1 -1
index afea7bb..f353275 100644
@@ -292,7 +292,7 @@ static int qos_endport_setup(osm_sm_t * sm, osm_physp_t * p,
 	if (!(p->port_info.capability_mask & IB_PORT_CAP_HAS_SL_MAP))
 		return 0;
 
-	if (re->update_sl2vl) {
+	if (re && re->update_sl2vl) {
 		routing_sl2vl = *port_sl2vl;
 		re->update_sl2vl(re->context, p, 0, 0, &routing_sl2vl);
 		port_sl2vl = &routing_sl2vl;
Signature · 6 lines
1.7.4.4

--
To unsubscribe from this list: send the line "unsubscribe linux-rdma" in
the body of a message to [email protected]
More majordomo info at  http://vger.kernel.org/majordomo-info.html

A message that is not in the archive (sent off-list or not yet received): 20110413075200.GC1529-iQai9MGU/dyyaiaB+Ve85laTQe2KTcn/@public.gmane.org