summaryrefslogtreecommitdiffstats
path: root/sys/contrib/rdma/rdma_cache.c
diff options
context:
space:
mode:
Diffstat (limited to 'sys/contrib/rdma/rdma_cache.c')
-rw-r--r--sys/contrib/rdma/rdma_cache.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/sys/contrib/rdma/rdma_cache.c b/sys/contrib/rdma/rdma_cache.c
index dced8eb..1e516a1 100644
--- a/sys/contrib/rdma/rdma_cache.c
+++ b/sys/contrib/rdma/rdma_cache.c
@@ -132,7 +132,7 @@ int ib_find_cached_gid(struct ib_device *device,
for (p = 0; p <= end_port(device) - start_port(device); ++p) {
cache = device->cache.gid_cache[p];
for (i = 0; i < cache->table_len; ++i) {
- if (!memcmp(gid, &cache->table[i], 6)) { /* XXX */
+ if (!memcmp(gid, &cache->table[i], sizeof *gid)) {
*port_num = p + start_port(device);
if (index)
*index = i;
OpenPOWER on IntegriCloud