]> git.baikalelectronics.ru Git - kernel.git/commit
IB/mthca: Fix offset in query_gid method
authorRoland Dreier <rolandd@cisco.com>
Mon, 1 May 2006 17:40:23 +0000 (10:40 -0700)
committerRoland Dreier <rolandd@cisco.com>
Mon, 1 May 2006 17:40:23 +0000 (10:40 -0700)
commitb3e662ea0dcbc4be6c96f61e149b8b2c727c3eea
treea926e60a3733a24e5e666d9e21877813f34e1228
parentb49094b0fc683bfa56431d1c8474ead3ec95cf15
IB/mthca: Fix offset in query_gid method

GuidInfo records have 8 byte GUIDs in them, so an index should be
multiplied by 8 to get an offset.  mthca_query_gid() was incorrectly
multiplying by 16.

Noticed by Leonid Keller <leonid@mellanox.co.il>.

Signed-off-by: Roland Dreier <rolandd@cisco.com>
drivers/infiniband/hw/mthca/mthca_provider.c