IB/mthca: Fix offset in query_gid method