Skip to contentSkip to conversation

opensm/ib_types.h: Mask off client rereg bit in set_client_rereg

PATCH Applied Hal Rosenstock 2 participants 2 messages Oct 13, 2009 1 message not in the archive InfiniBand

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 opensm/ib_types.h: Mask off client rereg bit in set_client_rereg

Issue introduced by commit 2d13530a16ab580894d3c2f83536dcf93909f43f

---

opensm/include/iba/ib_types.h +1 -1
index 935df43..fb4f79d 100644
@@ -5315,7 +5315,7 @@ ib_port_info_set_client_rereg(IN ib_port_info_t * const p_pi,
 {
 	CL_ASSERT(client_rereg <= 0x1);
 	p_pi->subnet_timeout =
-	    (uint8_t) (p_pi->subnet_timeout | (client_rereg << 7));
+	    (uint8_t) ((p_pi->subnet_timeout & 0x7F) | (client_rereg << 7));
 }
 
 /*

--
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