[ofa-general] ***SPAM*** [PATCH] opensm/osm_inform.c: Fix sense of zero GID compare in __match_inf_rec

Hal Rosenstock hnrose at comcast.net
Wed Feb 18 07:10:15 PST 2009


Signed-off-by: Hal Rosenstock <hal.rosenstock at gmail.com>
---

diff --git a/opensm/opensm/osm_inform.c b/opensm/opensm/osm_inform.c
index 4c773f6..6763a2a 100644
--- a/opensm/opensm/osm_inform.c
+++ b/opensm/opensm/osm_inform.c
@@ -121,7 +121,7 @@ __match_inf_rec(IN const cl_list_item_t * const p_list_item, IN void *context)
 	memset(&all_zero_gid, 0, sizeof(ib_gid_t));
 
 	/* if inform_info.gid is not zero, ignore lid range */
-	if (!memcmp(&p_infr_rec->inform_record.inform_info.gid, &all_zero_gid,
+	if (memcmp(&p_infr_rec->inform_record.inform_info.gid, &all_zero_gid,
 		    sizeof(p_infr_rec->inform_record.inform_info.gid))) {
 		if (memcmp(&p_infr->inform_record.inform_info.gid,
 			   &p_infr_rec->inform_record.inform_info.gid,



More information about the general mailing list