diff mbox

opensm/osmtest.c: fix bug in getting attr offset

Message ID 4C173AE5.6030207@dev.mellanox.co.il (mailing list archive)
State Not Applicable
Headers show

Commit Message

Yevgeny Kliteynik June 15, 2010, 8:33 a.m. UTC
None
diff mbox

Patch

diff --git a/opensm/osmtest/osmtest.c b/opensm/osmtest/osmtest.c
index abdfa7e..7412ce7 100644
--- a/opensm/osmtest/osmtest.c
+++ b/opensm/osmtest/osmtest.c
@@ -563,7 +563,7 @@  osmtest_get_all_recs(IN osmtest_t * const p_osmt,

 	p_context->p_osmt = p_osmt;
 	user.attr_id = attr_id;
-	user.attr_offset = ib_get_attr_offset((uint16_t) (attr_size >> 3));
+	user.attr_offset = ib_get_attr_offset((uint16_t) attr_size);

 	req.query_type = OSMV_QUERY_USER_DEFINED;
 	req.timeout_ms = p_osmt->opt.transaction_timeout;