From patchwork Tue Jun 15 08:33:41 2010 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Yevgeny Kliteynik X-Patchwork-Id: 106164 Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by demeter.kernel.org (8.14.3/8.14.3) with ESMTP id o5F8XnUo024004 for ; Tue, 15 Jun 2010 08:33:49 GMT Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1754055Ab0FOIds (ORCPT ); Tue, 15 Jun 2010 04:33:48 -0400 Received: from mail-fx0-f46.google.com ([209.85.161.46]:45977 "EHLO mail-fx0-f46.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1753908Ab0FOIdr (ORCPT ); Tue, 15 Jun 2010 04:33:47 -0400 Received: by fxm8 with SMTP id 8so2980733fxm.19 for ; Tue, 15 Jun 2010 01:33:45 -0700 (PDT) Received: by 10.223.45.22 with SMTP id c22mr6610924faf.107.1276590824955; Tue, 15 Jun 2010 01:33:44 -0700 (PDT) Received: from [10.4.1.29] ([62.219.166.71]) by mx.google.com with ESMTPS id k14sm9224111fav.24.2010.06.15.01.33.42 (version=SSLv3 cipher=RC4-MD5); Tue, 15 Jun 2010 01:33:44 -0700 (PDT) Message-ID: <4C173AE5.6030207@dev.mellanox.co.il> Date: Tue, 15 Jun 2010 11:33:41 +0300 From: Yevgeny Kliteynik User-Agent: Thunderbird 1.5.0.5 (X11/20060719) MIME-Version: 1.0 To: Sasha Khapyorsky , Linux RDMA Subject: [PATCH] opensm/osmtest.c: fix bug in getting attr offset Sender: linux-rdma-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-rdma@vger.kernel.org X-Greylist: IP, sender and recipient auto-whitelisted, not delayed by milter-greylist-4.2.3 (demeter.kernel.org [140.211.167.41]); Tue, 15 Jun 2010 08:33:49 +0000 (UTC) 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;