From: Ilya Nelkenbaum <il...@mellanox.com>

Signed-off-by: Ilya Nelkenbaum <il...@mellanox.com>
---
 opensm/osm_sw_info_rcv.c |    3 ++-
 1 files changed, 2 insertions(+), 1 deletions(-)

diff --git a/opensm/osm_sw_info_rcv.c b/opensm/osm_sw_info_rcv.c
index 77c5be7..ce747a9 100644
--- a/opensm/osm_sw_info_rcv.c
+++ b/opensm/osm_sw_info_rcv.c
@@ -222,7 +222,8 @@ static void si_rcv_process_new(IN osm_sm_t * sm, IN 
osm_node_t * p_node,
        }
 
        /* set subnet max mlid to the minimum MulticastFDBCap of all switches */
-       if (cl_ntoh16(p_si->mcast_cap) + IB_LID_MCAST_START_HO - 1 <
+       if (p_si->mcast_cap &&
+           cl_ntoh16(p_si->mcast_cap) + IB_LID_MCAST_START_HO - 1 <
            sm->p_subn->max_mcast_lid_ho) {
                sm->p_subn->max_mcast_lid_ho = cl_ntoh16(p_si->mcast_cap) +
                        IB_LID_MCAST_START_HO - 1;
-- 
1.7.8.2


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

Reply via email to