diff mbox

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

Message ID 20091013193549.GA14990@comcast.net (mailing list archive)
State Not Applicable, archived
Headers show

Commit Message

Hal Rosenstock Oct. 13, 2009, 7:35 p.m. UTC
None
diff mbox

Patch

diff --git a/opensm/include/iba/ib_types.h b/opensm/include/iba/ib_types.h
index 935df43..fb4f79d 100644
--- a/opensm/include/iba/ib_types.h
+++ b/opensm/include/iba/ib_types.h
@@ -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));
 }
 
 /*