diff options
-rw-r--r-- | drivers/infiniband/core/cma.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/infiniband/core/cma.c b/drivers/infiniband/core/cma.c index 075317884b53..8bb2cf4031ae 100644 --- a/drivers/infiniband/core/cma.c +++ b/drivers/infiniband/core/cma.c | |||
@@ -2687,7 +2687,7 @@ static void cma_set_mgid(struct rdma_id_private *id_priv, | |||
2687 | if (cma_any_addr(addr)) { | 2687 | if (cma_any_addr(addr)) { |
2688 | memset(mgid, 0, sizeof *mgid); | 2688 | memset(mgid, 0, sizeof *mgid); |
2689 | } else if ((addr->sa_family == AF_INET6) && | 2689 | } else if ((addr->sa_family == AF_INET6) && |
2690 | ((be32_to_cpu(sin6->sin6_addr.s6_addr32[0]) & 0xFF10A01B) == | 2690 | ((be32_to_cpu(sin6->sin6_addr.s6_addr32[0]) & 0xFFF0FFFF) == |
2691 | 0xFF10A01B)) { | 2691 | 0xFF10A01B)) { |
2692 | /* IPv6 address is an SA assigned MGID. */ | 2692 | /* IPv6 address is an SA assigned MGID. */ |
2693 | memcpy(mgid, &sin6->sin6_addr, sizeof *mgid); | 2693 | memcpy(mgid, &sin6->sin6_addr, sizeof *mgid); |