Skip to contentSkip to conversation

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

PATCH Applied Yevgeny Kliteynik 2 participants 2 messages Jun 15, 2010 – Jun 17, 2010 1 message not in the archive InfiniBand

lore
Share & tools
lore
#0 lore raw

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

Fix bug that was introduced by commit 4fd4ca306f93376963725285f3bf7c87a76055b0

---
 opensm/osmtest/osmtest.c |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)
opensm/osmtest/osmtest.c +1 -1
index abdfa7e..7412ce7 100644
@@ -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;
Signature · 6 lines
1.5.1.4

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

A message that is not in the archive (sent off-list or not yet received): 4C173AE5.6030207-LDSdmyG8hGV8YrgS2mwiifqBs+8SCbDb@public.gmane.org