[openib-general] [PATCH] OpenSM: Fix logic error in osm_sa_mcmember_record.c::__osm_sa_mcm_by_comp_mask_cb

Hal Rosenstock halr at voltaire.com
Fri Nov 18 06:07:50 PST 2005


In osm_sa_mcmember_record.c::__osm_sa_mcm_by_comp_mask_cb, fix negative
logic error which cause seg fault here reported by Troy Benjegerdes
<troy at scl.ameslab.gov>

Signed-off-by: Hal Rosenstock <halr at voltaire.com>

Index: opensm/osm_sa_mcmember_record.c
===================================================================
--- opensm/osm_sa_mcmember_record.c     (revision 4077)
+++ opensm/osm_sa_mcmember_record.c     (working copy)
@@ -1868,7 +1868,7 @@ __osm_sa_mcm_by_comp_mask_cb(
   if (IB_MCR_COMPMASK_PORT_GID & comp_mask)
   {
     /* try to find this port */
-    if (! osm_mgrp_is_port_present(p_mgrp, portguid, &p_mcm_port))
+    if (osm_mgrp_is_port_present(p_mgrp, portguid, &p_mcm_port))
     {
       scope_state = p_mcm_port->scope_state;
     }





More information about the general mailing list