Fix bug that was introduced by commit 4fd4ca306f93376963725285f3bf7c87a76055b0

Signed-off-by: Yevgeny Kliteynik <[email protected]>
---
 opensm/osmtest/osmtest.c |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)

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

Reply via email to